Package com.topologi.diffx.util
Class XMLFilenameFilter
java.lang.Object
com.topologi.diffx.util.XMLFilenameFilter
- All Implemented Interfaces:
FileFilter
Filename filter for XML files.
This filter assumes that an file simply as the .xml file extension.
- Version:
- 4 April 2005
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new case-insensitive XML file filter.XMLFilenameFilter(boolean ignoreCase) Creates a new XML file filter. -
Method Summary
-
Field Details
-
DEFAULT_EXTENSION
The XML extension to be used for filtering the files.- See Also:
-
ext
Deprecated.will be made private in future releasesThe XML extension to be used for filtering the files.- See Also:
-
ignoreCase
public final boolean ignoreCaseSet totrueto ignore the case of the extension.
-
-
Constructor Details
-
XMLFilenameFilter
public XMLFilenameFilter()Creates a new case-insensitive XML file filter. -
XMLFilenameFilter
public XMLFilenameFilter(boolean ignoreCase) Creates a new XML file filter.- Parameters:
ignoreCase-trueto ignore the case of the extension.
-
-
Method Details
-
accept
Tests whether or not the specified abstract pathname should be included in a pathname list.A file is accepted if its name has a file extension matching the "xml".
- Specified by:
acceptin interfaceFileFilter- Parameters:
pathname- The abstract pathname to be tested;- Returns:
trueif and only if pathname has an extension matching "xml".- Throws:
NullPointerException- If the path name isnull.
-