Package com.jalios.io
Class AndFileFilter
- java.lang.Object
-
- com.jalios.io.AndFileFilter
-
- All Implemented Interfaces:
java.io.FileFilter
public class AndFileFilter extends java.lang.Object implements java.io.FileFilter
Provides AND logic across twoFileFilter
. This filter accept file if both filters accepts it.- Since:
- jcms-5.7.3
-
-
Constructor Summary
Constructors Constructor Description AndFileFilter(java.io.FileFilter filter1, java.io.FileFilter filter2)
Create a new file filter with the specified filters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.io.File pathname)
Accept file if all filters of this AndFileFilter accept it.
-
-
-
Constructor Detail
-
AndFileFilter
public AndFileFilter(java.io.FileFilter filter1, java.io.FileFilter filter2)
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:
java.lang.IllegalArgumentException
- if either filter is null- Since:
- jcms-5.7.3
-
-