Class GeoPackageManager


  • public class GeoPackageManager
    extends Object
    GeoPackage Manager used to create and open GeoPackages
    Author:
    osbornb
    • Constructor Detail

      • GeoPackageManager

        public GeoPackageManager()
    • Method Detail

      • create

        public static File create​(File file)
        Create a GeoPackage
        Parameters:
        file - file
        Returns:
        created file
        Since:
        4.0.0
      • create

        public static File create​(File file,
                                  boolean validate)
        Create a GeoPackage
        Parameters:
        file - file
        validate - validate the file extension
        Returns:
        created file
        Since:
        4.0.0
      • create

        public static File create​(File directory,
                                  String name)
        Create a GeoPackage
        Parameters:
        directory - base directory
        name - GeoPackage file name
        Returns:
        created file
        Since:
        6.1.2
      • create

        public static File create​(File directory,
                                  String name,
                                  boolean validate)
        Create a GeoPackage
        Parameters:
        directory - base directory
        name - GeoPackage file name
        validate - validate the file extension
        Returns:
        created file
        Since:
        6.1.2
      • open

        public static GeoPackage open​(File file)
        Open a GeoPackage
        Parameters:
        file - file
        Returns:
        GeoPackage
      • open

        public static GeoPackage open​(boolean writable,
                                      File file)
        Open a GeoPackage
        Parameters:
        writable - true if writable
        file - file
        Returns:
        GeoPackage
        Since:
        6.3.1
      • open

        public static GeoPackage open​(File file,
                                      boolean validate)
        Open a GeoPackage
        Parameters:
        file - file
        validate - validate the GeoPackage
        Returns:
        GeoPackage
        Since:
        3.3.0
      • open

        public static GeoPackage open​(boolean writable,
                                      File file,
                                      boolean validate)
        Open a GeoPackage
        Parameters:
        writable - true if writable
        file - file
        validate - validate the GeoPackage
        Returns:
        GeoPackage
        Since:
        6.3.1
      • open

        public static GeoPackage open​(String name,
                                      File file)
        Open a GeoPackage
        Parameters:
        name - GeoPackage name
        file - GeoPackage file
        Returns:
        GeoPackage
        Since:
        3.0.2
      • open

        public static GeoPackage open​(String name,
                                      boolean writable,
                                      File file)
        Open a GeoPackage
        Parameters:
        name - GeoPackage name
        writable - true if writable
        file - GeoPackage file
        Returns:
        GeoPackage
        Since:
        6.3.1
      • open

        public static GeoPackage open​(String name,
                                      File file,
                                      boolean validate)
        Open a GeoPackage
        Parameters:
        name - GeoPackage name
        file - GeoPackage file
        validate - validate the GeoPackage
        Returns:
        GeoPackage
        Since:
        3.3.0
      • open

        public static GeoPackage open​(String name,
                                      boolean writable,
                                      File file,
                                      boolean validate)
        Open a GeoPackage
        Parameters:
        name - GeoPackage name
        writable - true if writable
        file - GeoPackage file
        validate - validate the GeoPackage
        Returns:
        GeoPackage
        Since:
        6.3.1
      • isWritable

        public static boolean isWritable​(File file)
        Determine if the file is writable
        Parameters:
        file - GeoPackage file
        Returns:
        true if writable
        Since:
        6.3.1
      • addExtension

        public static File addExtension​(File file)
        Add a GeoPackage file extension to the file if it does not already contain a file extension
        Parameters:
        file - file
        Returns:
        original file or file with extension
        Since:
        4.0.0
      • addExtension

        public static String addExtension​(String file)
        Add a GeoPackage file extension to the file if it does not already contain a file extension
        Parameters:
        file - file
        Returns:
        original file or file with extension
        Since:
        6.1.2
      • existingFile

        public static File existingFile​(File file)
        Check if the file exists in either its' current form or with a GeoPackage file extension, and return the existing file
        Parameters:
        file - file
        Returns:
        existing file or null if not file exists
        Since:
        4.0.0
      • exists

        public static boolean exists​(File file)
        Check if the file exists in either its' current form or with a GeoPackage file extension
        Parameters:
        file - file
        Returns:
        true if exists
        Since:
        4.0.0