Package org.apache.commons.vfs2.filter
Class NotFileFilter
java.lang.Object
org.apache.commons.vfs2.filter.NotFileFilter
- All Implemented Interfaces:
Serializable
,FileFilter
This filter produces a logical NOT of the filters specified.
- Since:
- 2.4
- Author:
- This code was originally ported from Apache Commons IO File Filter
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNotFileFilter
(FileFilter filter) Constructs a new file filter that NOTs the result of another filter. -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(FileSelectInfo fileSelectInfo) Returns the logical NOT of the underlying filter's return value for the same File.toString()
Provide a String representation of this file filter.
-
Constructor Details
-
NotFileFilter
Constructs a new file filter that NOTs the result of another filter.- Parameters:
filter
- the filter, must not be null
-
-
Method Details
-
accept
Returns the logical NOT of the underlying filter's return value for the same File.- Specified by:
accept
in interfaceFileFilter
- Parameters:
fileSelectInfo
- the File to check- Returns:
true
if the filter returnsfalse
- Throws:
FileSystemException
- Thrown for file system errors.
-
toString
Provide a String representation of this file filter.
-