Package mil.nga.geopackage
Class GeoPackageManager
- java.lang.Object
-
- mil.nga.geopackage.GeoPackageManager
-
public class GeoPackageManager extends Object
GeoPackage Manager used to create and open GeoPackages- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description GeoPackageManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static File
addExtension(File file)
Add a GeoPackage file extension to the file if it does not already contain a file extensionstatic String
addExtension(String file)
Add a GeoPackage file extension to the file if it does not already contain a file extensionstatic File
create(File file)
Create a GeoPackagestatic File
create(File file, boolean validate)
Create a GeoPackagestatic File
create(File directory, String name)
Create a GeoPackagestatic File
create(File directory, String name, boolean validate)
Create a GeoPackagestatic File
existingFile(File file)
Check if the file exists in either its' current form or with a GeoPackage file extension, and return the existing filestatic boolean
exists(File file)
Check if the file exists in either its' current form or with a GeoPackage file extensionstatic boolean
isWritable(File file)
Determine if the file is writablestatic GeoPackage
open(boolean writable, File file)
Open a GeoPackagestatic GeoPackage
open(boolean writable, File file, boolean validate)
Open a GeoPackagestatic GeoPackage
open(File file)
Open a GeoPackagestatic GeoPackage
open(File file, boolean validate)
Open a GeoPackagestatic GeoPackage
open(String name, boolean writable, File file)
Open a GeoPackagestatic GeoPackage
open(String name, boolean writable, File file, boolean validate)
Open a GeoPackagestatic GeoPackage
open(String name, File file)
Open a GeoPackagestatic GeoPackage
open(String name, File file, boolean validate)
Open a GeoPackage
-
-
-
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
- filevalidate
- 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 directoryname
- 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 directoryname
- GeoPackage file namevalidate
- 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 writablefile
- file- Returns:
- GeoPackage
- Since:
- 6.3.1
-
open
public static GeoPackage open(File file, boolean validate)
Open a GeoPackage- Parameters:
file
- filevalidate
- 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 writablefile
- filevalidate
- validate the GeoPackage- Returns:
- GeoPackage
- Since:
- 6.3.1
-
open
public static GeoPackage open(String name, File file)
Open a GeoPackage- Parameters:
name
- GeoPackage namefile
- 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 namewritable
- true if writablefile
- 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 namefile
- GeoPackage filevalidate
- 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 namewritable
- true if writablefile
- GeoPackage filevalidate
- 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
-
-