public class NameAndExtensionFilter extends Object implements FileFilter
Constructor and Description |
---|
NameAndExtensionFilter(String basename,
String ext) |
Modifier and Type | Method and Description |
---|---|
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() . |
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 FileFilter
public 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.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.