com.huguesjohnson.fileFilter
Class NonArchivedFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by com.huguesjohnson.fileFilter.NonArchivedFileFilter

public class NonArchivedFileFilter
extends javax.swing.filechooser.FileFilter

NonArchivedFileFilter Filter to only accept files that are not an archive or part of an archive

Author:
Hugues Johnson

Constructor Summary
NonArchivedFileFilter()
          Creates a new instance of NonArchivedFileFilter
 
Method Summary
 boolean accept(java.io.File file)
          accept tests if a file has an extension of an known archive type.
 java.lang.String getDescription()
          getDescription returns the description of file accepted by the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonArchivedFileFilter

public NonArchivedFileFilter()
Creates a new instance of NonArchivedFileFilter

Method Detail

accept

public boolean accept(java.io.File file)
accept tests if a file has an extension of an known archive type.

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
file - file to check
Returns:
false if the extension of a file matches a known archive type

getDescription

public java.lang.String getDescription()
getDescription returns the description of file accepted by the filter.

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
description of files accepted by the current filter


Copyright © 2000-2007 Hugues Johnson