org.dlese.dpc.xml
Class XMLFileFilter
java.lang.Object
org.dlese.dpc.xml.XMLFileFilter
- All Implemented Interfaces:
- FileFilter
public class XMLFileFilter
- extends Object
- implements FileFilter
A FileFilter for xml files. Filters for files that end in '.xml' or '.XML'. Instances
of this class may be passed to the File.listFiles(FileFilter)
method
of the File
class.
- Author:
- John Weatherley
Method Summary |
boolean |
accept(File file)
A FileFilter for xml files. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLFileFilter
public XMLFileFilter()
accept
public boolean accept(File file)
- A FileFilter for xml files. Filters for files that end in '.xml' or '.XML'.
- Specified by:
accept
in interface FileFilter
- Parameters:
file
- The file in question.
- Returns:
- True if the file ends in '.xml' or '.XML'.