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 SummaryConstructorsConstructorDescriptionNotFileFilter(FileFilter filter) Constructs a new file filter that NOTs the result of another filter.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanaccept(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- 
NotFileFilterConstructs a new file filter that NOTs the result of another filter.- Parameters:
- filter- the filter, must not be null
 
 
- 
- 
Method Details- 
acceptReturns the logical NOT of the underlying filter's return value for the same File.- Specified by:
- acceptin interface- FileFilter
- Parameters:
- fileSelectInfo- the File to check
- Returns:
- trueif the filter returns- false
- Throws:
- FileSystemException- Thrown for file system errors.
 
- 
toStringProvide a String representation of this file filter.
 
-