|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.topologi.diffx.util.XMLFilenameFilter
public final class XMLFilenameFilter
Filename filter for XML files.
This filter assumes that an file simply as the .xml file extension.
Field Summary | |
---|---|
static String |
DEFAULT_EXTENSION
The XML extension to be used for filtering the files. |
String |
ext
Deprecated. will be made private in future releases |
boolean |
ignoreCase
Set to true to ignore the case of the extension. |
Constructor Summary | |
---|---|
XMLFilenameFilter()
Creates a new case-insensitive XML file filter. |
|
XMLFilenameFilter(boolean ignoreCase)
Creates a new XML file filter. |
Method Summary | |
---|---|
boolean |
accept(File pathname)
Tests whether or not the specified abstract pathname should be included in a pathname list. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_EXTENSION
@Deprecated public final String ext
public final boolean ignoreCase
true
to ignore the case of the extension.
Constructor Detail |
---|
public XMLFilenameFilter()
public XMLFilenameFilter(boolean ignoreCase)
ignoreCase
- true
to ignore the case of the extension.Method Detail |
---|
public boolean accept(File pathname) throws NullPointerException
A file is accepted if its name has a file extension matching the "xml".
accept
in interface FileFilter
pathname
- The abstract pathname to be tested;
true
if and only if pathname has an extension matching "xml".
NullPointerException
- If the path name is null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |