|
The im4java Library, Version 1.4.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.im4java.utils.BaseFilter org.im4java.utils.ExtensionFilter
public class ExtensionFilter
This utility-class implements a FilenameFilter based on extensions. The comparison ignores the case of the extension.
Field Summary | |
---|---|
static ExtensionFilter |
RAW_IMAGES
A filter for raw-image types (the list is taken from Wikipedia, see http://en.wikipedia.org/wiki/Raw_image_format). |
static ExtensionFilter |
STANDARD_IMAGES
A filter for standard-image types (jpg, tif, png, gif and bmp). |
Constructor Summary | |
---|---|
ExtensionFilter(java.util.Collection<java.lang.String> pExt)
Constructor (pass the extensions as a collection); |
|
ExtensionFilter(java.lang.String... pExt)
Constructor (pass the extensions as array or as String-arguments). |
Method Summary | |
---|---|
boolean |
accept(java.io.File dir,
java.lang.String name)
Implement the accect-method of FilenameFilter |
Methods inherited from class org.im4java.utils.BaseFilter |
---|
acceptDir, ignoreDotDirs, setRecursion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ExtensionFilter STANDARD_IMAGES
public static final ExtensionFilter RAW_IMAGES
Constructor Detail |
---|
public ExtensionFilter(java.lang.String... pExt)
public ExtensionFilter(java.util.Collection<java.lang.String> pExt)
Method Detail |
---|
public boolean accept(java.io.File dir, java.lang.String name)
FilenameFilter.accept(java.io.File, java.lang.String)
|
The im4java Library, Version 1.4.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |