public static final class GeoPackageDataSource.Builder extends Object implements AutoCloseable
GeoPackageDataSource
.Constructor and Description |
---|
Builder(GeoPackageDataSource.Builder other) |
Modifier and Type | Method and Description |
---|---|
GeoPackageDataSource |
build()
Build the GeoPackage data source .
|
void |
close() |
protected void |
finalize() |
GeoPackageDataSource.Builder |
source(String source)
Sets the absolute path to the GeoPackage file.
|
GeoPackageDataSource.Builder |
tableName(String tableName)
Sets the name of the table that needs to be decoded.
|
public Builder(@NotNull GeoPackageDataSource.Builder other)
public void close()
close
in interface AutoCloseable
@NotNull public GeoPackageDataSource.Builder source(@NotNull String source)
The extension of the file should be '.gpkg'. Calling this function is mandatory.
source
- The absolute path to the GeoPackage file.@NotNull public GeoPackageDataSource.Builder tableName(@NotNull String tableName)
Calling this function is optional. If not specified, the first features table is used.
tableName
- The name of the table that needs to be decoded.@NotNull public GeoPackageDataSource build() throws IllegalStateException
After calling this function, this builder should no longer be used.
IllegalStateException
- If not all mandatory parameters are set.