|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.io.RegExFileFilter
public class RegExFileFilter
Implements a file filter that filters based on a passed in Pattern.
Preciesly, it will accept exactly those Files for which
the matches() method of the Pattern returns true on the output of the getName()
method of the File.
| Constructor Summary | |
|---|---|
RegExFileFilter(java.util.regex.Pattern pattern)
Sets up a RegExFileFilter which checks if the file name (not the entire path) matches the passed in Pattern. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File file)
Checks whether a file satisfies the selection filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegExFileFilter(java.util.regex.Pattern pattern)
Pattern.
| Method Detail |
|---|
public boolean accept(java.io.File file)
accept in interface java.io.FileFilterfile - The file
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||