|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.io.NameAndExtensionFilter
public class NameAndExtensionFilter
Helper class to filter for files with a known basename and extension.
| Constructor Summary | |
|---|---|
NameAndExtensionFilter(String basename,
String ext)
|
|
| Method Summary | |
|---|---|
boolean |
accept(File pathname)
Accepts files ending with a .log extension whose name
component is shared by the name component found in
#getLogBaseName(). |
String |
getBaseName()
The basename parameter provided to the constructor. |
File[] |
getFiles()
Return any existing log files within the directory identified by getBaseName(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NameAndExtensionFilter(String basename,
String ext)
| Method Detail |
|---|
public String getBaseName()
public boolean accept(File pathname)
.log extension whose name
component is shared by the name component found in
#getLogBaseName().
accept in interface FileFilterpublic File[] getFiles()
getBaseName(). If the basename names a directory, then all
files in that directory are scanned. Otherwise the parent directory
which would contain any file created using basename is scanned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||