com.dynalivery.repository.util
Class BinaryFilenameFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--com.dynalivery.repository.util.BinaryFilenameFilter

public class BinaryFilenameFilter
extends javax.swing.filechooser.FileFilter
implements java.io.FilenameFilter

A class to filter out valid report binary files


Constructor Summary
BinaryFilenameFilter()
           
 
Method Summary
 boolean accept(java.io.File file)
          Returns true if valid template file.
 boolean accept(java.io.File dir, java.lang.String name)
          Returns true if valid report binary file.
 java.lang.String getDescription()
          Returns displayable description String for this filter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryFilenameFilter

public BinaryFilenameFilter()
Method Detail

accept

public boolean accept(java.io.File file)
Returns true if valid template file.
Overrides:
accept in class javax.swing.filechooser.FileFilter
Parameters:
file - the candidate File object
Returns:
true if valid template file

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Returns true if valid report binary file.
Specified by:
accept in interface java.io.FilenameFilter
Parameters:
dir - the directory of this file
name - the filename string
Returns:
true if valid report binary file

getDescription

public java.lang.String getDescription()
Returns displayable description String for this filter
Overrides:
getDescription in class javax.swing.filechooser.FileFilter