public class DelegateFileFilter extends AbstractFileFilter implements Serializable
Constructor and Description |
---|
DelegateFileFilter(FileFilter filter)
Constructs a delegate file filter around an existing FileFilter.
|
DelegateFileFilter(FilenameFilter filter)
Constructs a delegate file filter around an existing FilenameFilter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File file)
Checks the filter.
|
boolean |
accept(File dir,
String name)
Checks the filter.
|
String |
toString()
Provide a String representaion of this file filter.
|
public DelegateFileFilter(FilenameFilter filter)
filter
- the filter to decoratepublic DelegateFileFilter(FileFilter filter)
filter
- the filter to decoratepublic boolean accept(File file)
accept
in interface IOFileFilter
accept
in interface FileFilter
accept
in class AbstractFileFilter
file
- the file to checkpublic boolean accept(File dir, String name)
accept
in interface IOFileFilter
accept
in interface FilenameFilter
accept
in class AbstractFileFilter
dir
- the directoryname
- the filename in the directorypublic String toString()
toString
in class AbstractFileFilter
Copyright © 2001–2019 KnowGate. All rights reserved.