Package io.microsphere.io.filter
Class FileExtensionFilter
- java.lang.Object
-
- io.microsphere.io.filter.FileExtensionFilter
-
- All Implemented Interfaces:
IOFileFilter,java.io.FileFilter,java.io.FilenameFilter
public class FileExtensionFilter extends java.lang.Object implements IOFileFilter
IOFileFilterfor file extension filter- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
IOFileFilter,FileUtils.getFileExtension(String)
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFileExtensionFilter(java.lang.String extension)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(java.io.File file)static FileExtensionFilterof(java.lang.String extension)Creates an instance ofFileExtensionFilterby the given file extension-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.microsphere.io.filter.IOFileFilter
accept
-
-
-
-
Method Detail
-
accept
public boolean accept(java.io.File file)
- Specified by:
acceptin interfacejava.io.FileFilter- Specified by:
acceptin interfaceIOFileFilter
-
of
public static FileExtensionFilter of(java.lang.String extension)
Creates an instance ofFileExtensionFilterby the given file extension- Parameters:
extension- the file extension- Returns:
- non-null
-
-