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
  • Constructor Details

    • XMLFileFilter

      public XMLFileFilter()
  • Method Details

    • 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'.