Class JARFileFilter
- java.lang.Object
-
- org.arakhne.afc.inputoutput.filefilter.AbstractFileFilter
-
- org.arakhne.afc.inputoutput.filefilter.JARFileFilter
-
- All Implemented Interfaces:
FileFilter
,FilenameFilter
,FileFilter
public class JARFileFilter extends AbstractFileFilter
File filter for Java archive file document.- Since:
- 14.0
- 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_JAR
Default extension for the Java archive files.
-
Constructor Summary
Constructors Constructor Description JARFileFilter()
Construct.JARFileFilter(boolean acceptDirectories)
Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isJARFile(File file)
Replies if the specified file contains JAR file.static boolean
isJARFile(String file)
Replies if the specified file contains JAR file.static boolean
isJARFile(URL file)
Replies if the specified file contains JAR file.-
Methods inherited from class org.arakhne.afc.inputoutput.filefilter.AbstractFileFilter
accept, accept, getDescription, getExtensions
-
-
-
-
Field Detail
-
EXTENSION_JAR
public static final String EXTENSION_JAR
Default extension for the Java archive files.- See Also:
- Constant Field Values
-
-
Method Detail
-
isJARFile
public static boolean isJARFile(File file)
Replies if the specified file contains JAR file.- Parameters:
file
- is the file to test.- Returns:
true
if the given file contains JAR file, otherwisefalse
-
isJARFile
public static boolean isJARFile(URL file)
Replies if the specified file contains JAR file.- Parameters:
file
- is the file to test.- Returns:
true
if the given file contains JAR file, otherwisefalse
-
isJARFile
public static boolean isJARFile(String file)
Replies if the specified file contains JAR file.- Parameters:
file
- is the file to test.- Returns:
true
if the given file contains JAR file, otherwisefalse
-
-