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 String
EXTENSION_PNG
Default 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 boolean
isPNGFile(File file)
Replies if the specified file contains PNG picture.static boolean
isPNGFile(String file)
Replies if the specified file contains PNG picture.static boolean
isPNGFile(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:
true
if 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:
true
if 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:
true
if the given file contains PNG picture, otherwisefalse
-
-