|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.common.util.ExtensionFilter
A customizable FilenameFilter subclass. Pass the extension of the files you want to accept.
Field Summary | |
protected java.lang.String[] |
ext_
|
protected boolean |
ignoreCase_
|
protected boolean |
includeDirs_
|
Constructor Summary | |
ExtensionFilter(java.lang.String extension)
Creates a new ExtensionFilter that accepts files with the specified extension. |
|
ExtensionFilter(java.lang.String[] extensions)
Constructs a new ExtensionFilter that accepts multiple extensions. |
|
ExtensionFilter(java.lang.String[] extensions,
boolean dirs)
Constructs a new ExtensionFilter that accepts multiple extensions, and optionally directories. |
|
ExtensionFilter(java.lang.String[] ext,
boolean dirs,
boolean ignoreCase)
Constructs a new ExtensionFilter with the given extensions, optionally including directories, optionally performing a case-sensitive match. |
|
ExtensionFilter(java.lang.String extension,
boolean dirs)
Creates a new ExtensionFilter that accepts files with the specified extension. |
|
ExtensionFilter(java.lang.String extension,
boolean dirs,
boolean ignoreCase)
Constructs a new ExtensionFilter with the given extensions, optionally including directories, optionally performing a case-sensitive match. |
Method Summary | |
boolean |
accept(java.io.File file,
java.lang.String name)
Implementation for FilenameFilter methods. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String[] ext_
protected boolean includeDirs_
protected boolean ignoreCase_
Constructor Detail |
public ExtensionFilter(java.lang.String extension)
extension
- the filename extension we want to accept,
such as ".gif".public ExtensionFilter(java.lang.String[] extensions)
public ExtensionFilter(java.lang.String[] extensions, boolean dirs)
public ExtensionFilter(java.lang.String extension, boolean dirs)
extension
- the filename extension we want to acceptdirs
- whether to accept directories as wellpublic ExtensionFilter(java.lang.String[] ext, boolean dirs, boolean ignoreCase)
public ExtensionFilter(java.lang.String extension, boolean dirs, boolean ignoreCase)
Method Detail |
public boolean accept(java.io.File file, java.lang.String name)
accept
in interface java.io.FilenameFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |