Package com.jalios.io
Class AndFileFilter
java.lang.Object
com.jalios.io.AndFileFilter
- All Implemented Interfaces:
FileFilter
Provides AND logic across two
FileFilter.
This filter accept file if both filters accepts it.- Since:
- jcms-5.7.3
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAndFileFilter(FileFilter filter1, FileFilter filter2) Create a new file filter with the specified filters. -
Method Summary
-
Field Details
-
filter1
-
filter2
-
-
Constructor Details
-
AndFileFilter
Create a new file filter with the specified filters.- Parameters:
filter1- the first filter, must not be nullfilter2- the second filter, must not be null- Throws:
IllegalArgumentException- if either filter is null- Since:
- jcms-5.7.3
-
-
Method Details
-
accept
Accept file if all filters of this AndFileFilter accept it.- Specified by:
acceptin interfaceFileFilter
-