|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectloci.formats.NumberFilter
public class NumberFilter
NumberFilter is a helper filter for FilePattern.findPattern().
Constructor Summary | |
---|---|
NumberFilter(String pre,
String post)
Creates a filter for files containing a numerical block, sandwiched between the given strings. |
Method Summary | |
---|---|
boolean |
accept(File pathname)
Tests if a specified file should be included in a file list. |
boolean |
accept(String name)
Tests if a specified file should be included in a file list. |
BigInteger |
getNumber(String name)
Gets numbers filling the asterisk positions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NumberFilter(String pre, String post)
Method Detail |
---|
public BigInteger getNumber(String name)
public boolean accept(String name)
public boolean accept(File pathname)
accept
in interface FileFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |