Class WildcardFileFilter

java.lang.Object
de.elo.ix.client.imfs.WildcardFileFilter
All Implemented Interfaces:
FileFilter

public class WildcardFileFilter
extends java.lang.Object
implements FileFilter
Implementation for a file name filter.
  • Constructor Summary

    Constructors 
    Constructor Description
    WildcardFileFilter​(java.lang.String filters, boolean includeFilter)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    boolean isMatching​(java.io.File f)
    Check, whether a file matches the filter.

    Methods inherited from class java.lang.Object

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

    • WildcardFileFilter

      public WildcardFileFilter​(java.lang.String filters, boolean includeFilter)
      Constructor.
      Parameters:
      filters - Semicolon separated string with filename filters, e.g. "*.txt;*.exe"
      includeFilter - True, for a filter object that checks whether files should be included.
  • Method Details

    • isMatching

      public boolean isMatching​(java.io.File f)
      Check, whether a file matches the filter.
      Specified by:
      isMatching in interface FileFilter
      Parameters:
      f - File.
      Returns:
      true, if the given file matches the filter.