|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object IcanGui.FileFilter
public class FileFilter
Restrict file names to those with the desired prefix and extension.
Field Summary | |
---|---|
private java.lang.String |
filterName
String to use as file name filter. |
Constructor Summary | |
---|---|
FileFilter(java.lang.String name)
Constructor saves a string in the form "pre*ext" to use as filter. |
Method Summary | |
---|---|
boolean |
accept(java.io.File fnt,
java.lang.String fnm)
Method "accept" tests for file name of the given format where there should be one asterisk (*) in the filename to be tested against. |
java.lang.String |
getName()
Get class name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String filterName
Constructor Detail |
---|
public FileFilter(java.lang.String name)
name
- String to use as file name filter.
There should be one asterisk (*) within the string.
Either the prefix or extension may be missing.
Having an extension present is recommended.FilenameFilter
Method Detail |
---|
public boolean accept(java.io.File fnt, java.lang.String fnm)
accept
in interface java.io.FilenameFilter
fnt
- File object.fnm
- File name string.
FilenameFilter.accept(java.io.File, java.lang.String)
public java.lang.String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |