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