net.grelf.grip
Class FileIOBlobsFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by net.grelf.grip.FileIOBlobsFilter

public class FileIOBlobsFilter
extends javax.swing.filechooser.FileFilter

Support class for FileIO. Provides blob data file type selection for users of the file chooser in FileIO.


Field Summary
static int ANY
           
static int BLOBS
           
 
Constructor Summary
FileIOBlobsFilter()
          Filter to select any file kind.
FileIOBlobsFilter(int aKind)
          Filter to select a specific file kind.
 
Method Summary
 boolean accept(java.io.File f)
          Whether the filter can accept the given file.
 java.lang.String getDescription()
          Get a concise description of what the filter can accept.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANY

public static final int ANY
See Also:
Constant Field Values

BLOBS

public static final int BLOBS
See Also:
Constant Field Values
Constructor Detail

FileIOBlobsFilter

public FileIOBlobsFilter()
Filter to select any file kind.


FileIOBlobsFilter

public FileIOBlobsFilter(int aKind)
Filter to select a specific file kind.

Method Detail

accept

public boolean accept(java.io.File f)
Whether the filter can accept the given file.

Specified by:
accept in class javax.swing.filechooser.FileFilter

getDescription

public java.lang.String getDescription()
Get a concise description of what the filter can accept.

Specified by:
getDescription in class javax.swing.filechooser.FileFilter