- java.lang.Object
-
- org.arakhne.afc.inputoutput.filefilter.AbstractFileFilter
-
- org.arakhne.afc.io.dbase.DBaseFileFilter
-
- All Implemented Interfaces:
FileFilter,FilenameFilter,FileFilter
public class DBaseFileFilter extends AbstractFileFilter
This class permits to filter the files to show only the DBASE files. It could be used by ajavax.swing.JFileChooser.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:52
- Author:
- Stéphane GALLAND, Olivier LAMOTTE
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- dbasefile
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXTENSION_DBASE_FILEExtension of the DBF files (without the point).
-
Constructor Summary
Constructors Constructor Description DBaseFileFilter()Constructor.DBaseFileFilter(boolean acceptDirectories)Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisDbaseFile(File file)Replies if the specified file content is a dBase file.static booleanisDbaseFile(String file)Replies if the specified file content is a dBase file.static booleanisDbaseFile(URL file)Replies if the specified file content is a dBase file.-
Methods inherited from class org.arakhne.afc.inputoutput.filefilter.AbstractFileFilter
accept, accept, getDescription, getExtensions
-
-
-
-
Field Detail
-
EXTENSION_DBASE_FILE
public static final String EXTENSION_DBASE_FILE
Extension of the DBF files (without the point).- See Also:
- Constant Field Values
-
-
Method Detail
-
isDbaseFile
@Pure public static boolean isDbaseFile(File file)
Replies if the specified file content is a dBase file.- Parameters:
file- is the file to test- Returns:
trueif the given file contains dBase data, othersiwefalse.
-
isDbaseFile
@Pure public static boolean isDbaseFile(URL file)
Replies if the specified file content is a dBase file.- Parameters:
file- is the file to test- Returns:
trueif the given file contains dBase data, othersiwefalse.
-
isDbaseFile
@Pure public static boolean isDbaseFile(String file)
Replies if the specified file content is a dBase file.- Parameters:
file- is the file to test- Returns:
trueif the given file contains dBase data, othersiwefalse.
-
-