MCPcopy Create free account
hub / github.com/PCGen/pcgen / XMLFilter

Class XMLFilter

code/src/java/pcgen/gui2/doomsdaybook/XMLFilter.java:22–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20import java.io.File;
21
22public class XMLFilter implements java.io.FilenameFilter
23{
24
25 /**
26 * Returns true if file matches *.xml
27 *
28 * @param file
29 * @param str
30 * @return true if filter matches *.xml
31 */
32 @Override
33 public boolean accept(File file, String str)
34 {
35 return str.matches(".*\\.xml$");
36 }
37}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected