Class ShapeFileFilter

    • 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
    • Constructor Detail

      • ShapeFileFilter

        public ShapeFileFilter()
        Constructor.
      • ShapeFileFilter

        public ShapeFileFilter​(boolean acceptDirectories)
        Constructor.
        Parameters:
        acceptDirectories - is true to permit to this file filter to accept directories; false if the directories should not match.
    • 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, otherwise false.
      • 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, otherwise false.
      • 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, otherwise false