- java.lang.Object
-
- org.arakhne.afc.inputoutput.filefilter.AbstractFileFilter
-
- org.arakhne.afc.io.shape.ShapeFileFilter
-
- All Implemented Interfaces:
FileFilter
,FilenameFilter
,FileFilter
public class ShapeFileFilter extends AbstractFileFilter
This class permits to filter the files to show only the SHAPE 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:
- shapefile
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXTENSION_SHAPE
Extension of the SHP files (without the point).static String
EXTENSION_SHP
Extension of the SHP files (without the point).
-
Constructor Summary
Constructors Constructor Description ShapeFileFilter()
Constructor.ShapeFileFilter(boolean acceptDirectories)
Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isShapeFile(File file)
Replies if the specified file content is a ESRI shape file.static boolean
isShapeFile(String file)
Replies if the specified file content is a ESRI shape file.static boolean
isShapeFile(URL file)
Replies if the specified file content is a ESRI shape file.-
Methods inherited from class org.arakhne.afc.inputoutput.filefilter.AbstractFileFilter
accept, accept, getDescription, getExtensions
-
-
-
-
Field Detail
-
EXTENSION_SHP
public static final String EXTENSION_SHP
Extension of the SHP files (without the point).- See Also:
- Constant Field Values
-
EXTENSION_SHAPE
public static final String EXTENSION_SHAPE
Extension of the SHP files (without the point).- See Also:
- Constant Field Values
-
-
Method Detail
-
isShapeFile
@Pure public static boolean isShapeFile(File file)
Replies if the specified file content is a ESRI shape file.- Parameters:
file
- is the file to test- Returns:
true
if the given file contains dBase data, otherwisefalse
.
-
isShapeFile
@Pure public static boolean isShapeFile(URL file)
Replies if the specified file content is a ESRI shape file.- Parameters:
file
- is the file to test- Returns:
true
if the given file contains dBase data, otherwisefalse
.
-
isShapeFile
@Pure public static boolean isShapeFile(String file)
Replies if the specified file content is a ESRI shape file.- Parameters:
file
- is the file to test- Returns:
true
if the given file contains dBase data, otherwisefalse
-
-