Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`ExtensionFileFilter(String[] ext, String description)` Constructor.

Method Summary
`boolean` | `accept(File pathname)`
`String` | `getDescription()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### 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.

Method Detail

### accept

    public boolean accept(File pathname)

### getDescription

    public String getDescription()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD