Class FileDialogFilter

  • All Implemented Interfaces:
    java.io.FilenameFilter

    public class FileDialogFilter
    extends java.lang.Object
    implements java.io.FilenameFilter
    checks the filename and directory with the specified filter checks with multiple "*". the filter has to start with a '*' character. this to keep the search the same as in the motif version

    Copied verbatium from sun.awt.tiny.TinyFileDialogPeer. Used by RollingLogFile expiration code

    Version:
    $Revision$, $Date$
    Author:
    mikep
    • Constructor Summary

      Constructors 
      Constructor Description
      FileDialogFilter​(java.lang.String f)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.io.File dir, java.lang.String fileName)
      return true if match
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • FileDialogFilter

        public FileDialogFilter​(java.lang.String f)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • accept

        public boolean accept​(java.io.File dir,
                              java.lang.String fileName)
        return true if match
        Specified by:
        accept in interface java.io.FilenameFilter