Class AnyFilenameFilter

  • All Implemented Interfaces:
    java.io.FilenameFilter

    public class AnyFilenameFilter
    extends java.lang.Object
    implements java.io.FilenameFilter
    Author:
    ubaldino
    • Constructor Summary

      Constructors 
      Constructor Description
      AnyFilenameFilter​(java.lang.String ext)  
    • Method Summary

      Modifier and Type Method Description
      boolean accept​(java.io.File dir, java.lang.String fname)
      FilenameFilter implementation for XML files
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnyFilenameFilter

        public AnyFilenameFilter​(java.lang.String ext)
        Parameters:
        ext - file extension
    • Method Detail

      • accept

        public boolean accept​(java.io.File dir,
                              java.lang.String fname)
        FilenameFilter implementation for XML files
        Specified by:
        accept in interface java.io.FilenameFilter
        Parameters:
        dir - dir to filter on
        fname - file name to test
        Returns:
        if file is accepted by this filter