org.pentaho.reporting.libraries.base.util
public class FilesystemFilter extends FileFilter implements FilenameFilter
Constructor Summary | |
---|---|
FilesystemFilter(String fileext, String descr)
Creates a new filter.
| |
FilesystemFilter(String fileext, String descr, boolean accDirs)
Creates a new filter.
| |
FilesystemFilter(String[] fileext, String descr, boolean accDirs)
Creates a new filter.
|
Method Summary | |
---|---|
boolean | accept(File dir, String name)
Returns true if the file is accepted, and false otherwise.
|
boolean | accept(File dir)
Returns true if the specified file matches the requirements of this
filter, and false otherwise.
|
void | acceptDirectories(boolean b)
Sets the flag that controls whether or not the filter accepts directories.
|
boolean | acceptsDirectories()
Returns the flag that indicates whether or not the filter accepts directories.
|
boolean | equals(Object o) |
String | getDescription()
Returns the filter description.
|
int | hashCode() |
Parameters: fileext the file extension. descr the description.
Parameters: fileext the file extension. descr the description. accDirs accept directories?
Parameters: fileext the file extension. descr the description. accDirs accept directories?
Throws: NullPointerException if the file extensions are null.
true
if the file is accepted, and false
otherwise.
Parameters: dir the directory. name the file name.
Returns: A boolean.
true
if the specified file matches the requirements of this
filter, and false
otherwise.
Parameters: dir the file or directory.
Returns: A boolean.
Parameters: b a boolean.
Returns: A boolean.
Returns: The filter description.