|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.ExtensionFilter
public class ExtensionFilter
Class that allows selection of files with a certain extension, either caase or non-case sensitive.
| Field Summary | |
|---|---|
private String |
extension
The extension accepted. |
private boolean |
noncase
If false, we allow non-case sensitive matching. |
| Constructor Summary | |
|---|---|
ExtensionFilter(String ext)
Constructs a per default case-sensitive extension filter. |
|
ExtensionFilter(String ext,
boolean ignore)
Constructs a extension filter that might be non-case sensitive. |
|
| Method Summary | |
|---|---|
boolean |
accept(File that)
Accepts file that end with my extension. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private String extension
private boolean noncase
| Constructor Detail |
|---|
public ExtensionFilter(String ext)
public ExtensionFilter(String ext,
boolean ignore)
| Method Detail |
|---|
public boolean accept(File that)
accept in interface FileFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||