Class PNGFileFilter
- java.lang.Object
-
- org.arakhne.afc.inputoutput.filefilter.AbstractFileFilter
-
- org.arakhne.afc.inputoutput.filefilter.PNGFileFilter
-
- All Implemented Interfaces:
FileFilter,FilenameFilter,FileFilter
public class PNGFileFilter extends AbstractFileFilter
File filter for PNG pictures.- Version:
- 17.0 2020-01-04 14:41:40
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- inputoutput
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXTENSION_PNGDefault extension for the PNG pictures.
-
Constructor Summary
Constructors Constructor Description PNGFileFilter()Construct.PNGFileFilter(boolean acceptDirectories)Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisPNGFile(File file)Replies if the specified file contains PNG picture.static booleanisPNGFile(String file)Replies if the specified file contains PNG picture.static booleanisPNGFile(URL file)Replies if the specified file contains PNG picture.-
Methods inherited from class org.arakhne.afc.inputoutput.filefilter.AbstractFileFilter
accept, accept, getDescription, getExtensions
-
-
-
-
Field Detail
-
EXTENSION_PNG
public static final String EXTENSION_PNG
Default extension for the PNG pictures.- See Also:
- Constant Field Values
-
-
Method Detail
-
isPNGFile
public static boolean isPNGFile(File file)
Replies if the specified file contains PNG picture.- Parameters:
file- is the file to test.- Returns:
trueif the given file contains PNG picture, otherwisefalse
-
isPNGFile
public static boolean isPNGFile(URL file)
Replies if the specified file contains PNG picture.- Parameters:
file- is the file to test.- Returns:
trueif the given file contains PNG picture, otherwisefalse
-
isPNGFile
public static boolean isPNGFile(String file)
Replies if the specified file contains PNG picture.- Parameters:
file- is the file to test.- Returns:
trueif the given file contains PNG picture, otherwisefalse
-
-