Class DelegateFileFilter

    • Constructor Summary

      Constructors 
      Constructor Description
      DelegateFileFilter​(java.io.FileFilter filter)
      Constructs a delegate file filter around an existing FileFilter.
      DelegateFileFilter​(java.io.FilenameFilter filter)
      Constructs a delegate file filter around an existing FilenameFilter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.io.File file)
      Checks the filter.
      boolean accept​(java.io.File dir, java.lang.String name)
      Checks the filter.
      java.lang.String toString()
      Provide a String representation of this file filter.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DelegateFileFilter

        public DelegateFileFilter​(java.io.FilenameFilter filter)
        Constructs a delegate file filter around an existing FilenameFilter.
        Parameters:
        filter - the filter to decorate
      • DelegateFileFilter

        public DelegateFileFilter​(java.io.FileFilter filter)
        Constructs a delegate file filter around an existing FileFilter.
        Parameters:
        filter - the filter to decorate
    • Method Detail

      • accept

        public boolean accept​(java.io.File file)
        Checks the filter.
        Specified by:
        accept in interface java.io.FileFilter
        Specified by:
        accept in interface IOFileFilter
        Overrides:
        accept in class AbstractFileFilter
        Parameters:
        file - the file to check
        Returns:
        true if the filter matches
      • accept

        public boolean accept​(java.io.File dir,
                              java.lang.String name)
        Checks the filter.
        Specified by:
        accept in interface java.io.FilenameFilter
        Specified by:
        accept in interface IOFileFilter
        Overrides:
        accept in class AbstractFileFilter
        Parameters:
        dir - the directory
        name - the file name in the directory
        Returns:
        true if the filter matches
      • toString

        public java.lang.String toString()
        Provide a String representation of this file filter.
        Overrides:
        toString in class AbstractFileFilter
        Returns:
        a String representation