|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.filechooser.FileFilter net.sourceforge.pavlov.zipUtilities.ZipCapableFileFilter net.sourceforge.pavlov.zipUtilities.JPEGFileFilter
public class JPEGFileFilter
A FileFilter that accepts only JPEG files and zip/jar entries.
Constructor Summary | |
---|---|
JPEGFileFilter()
|
Method Summary | |
---|---|
boolean |
accept(File f)
Returns true if f is a JPEG file. |
boolean |
accept(ZipEntry f)
Returns true if f is a JPEG file. |
protected boolean |
checkName(String name)
Determines if name represents a JPEG file/entry name. |
String |
getDescription()
Returns description of this file filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JPEGFileFilter()
Method Detail |
---|
public boolean accept(File f)
accept
in interface FileFilter
accept
in class FileFilter
f
- a File
value
boolean
valuepublic boolean accept(ZipEntry f)
accept
in class ZipCapableFileFilter
f
- a ZipEntry
value
boolean
valueprotected boolean checkName(String name)
name
- a String
value
boolean
valuepublic String getDescription()
getDescription
in class FileFilter
String
value
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |