org.pdfbox.util
Class ExtensionFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
org.pdfbox.util.ExtensionFileFilter
- public class ExtensionFileFilter
- extends FileFilter
A FileFilter that will only accept files of a certain extension.
- Version:
- $Revision: 1.2 $
- Author:
- Ben Litchfield
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtensionFileFilter
public ExtensionFileFilter(String[] ext,
String description)
- Constructor.
- Parameters:
ext
- A list of filename extensions, ie new String[] { "PDF"}.description
- A description of the files.
accept
public boolean accept(File pathname)
-
getDescription
public String getDescription()
-