Class RawRasterStoreProvider
java.lang.Object
org.apache.sis.storage.DataStoreProvider
org.apache.sis.internal.storage.URIDataStore.Provider
org.apache.sis.internal.storage.PRJDataStore.Provider
org.apache.sis.internal.storage.esri.RawRasterStoreProvider
The provider of
RawRasterStore
instances.
Given a StorageConnector
input, this class tries to instantiate a RawRasterStore
.
Thread safety
The sameRawRasterStoreProvider
instance can be safely used by many threads without synchronization on
the part of the caller. However, the RawRasterStore
instances created by this factory are not thread-safe.- Since:
- 1.2
- Version:
- 1.2
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.storage.DataStoreProvider
DataStoreProvider.Prober<S>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String
The filename extension of"*.hdr"
files.(package private) static final String
The format names for raw binary raster files.Fields inherited from class org.apache.sis.internal.storage.PRJDataStore.Provider
DEFAULT_CRS
Fields inherited from class org.apache.sis.internal.storage.URIDataStore.Provider
CREATE_PARAM, ENCODING, LOCATION_PARAM
Fields inherited from class org.apache.sis.storage.DataStoreProvider
CREATE, LOCATION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a generic name for this data store, used mostly in warnings or error messages.open
(StorageConnector connector) Returns anRawRasterStore
implementation associated with this provider.probeContent
(StorageConnector connector) ReturnsProbeResult.SUPPORTED
if the given storage appears to be supported byRawRasterStore
.Methods inherited from class org.apache.sis.internal.storage.PRJDataStore.Provider
build, open
Methods inherited from class org.apache.sis.internal.storage.URIDataStore.Provider
connector, descriptor, getOpenParameters, isWritable
Methods inherited from class org.apache.sis.storage.DataStoreProvider
getFormat, getLogger, getSupportedVersions, probeContent
-
Field Details
-
NAME
The format names for raw binary raster files.- See Also:
-
HDR
The filename extension of"*.hdr"
files.- See Also:
-
-
Constructor Details
-
RawRasterStoreProvider
public RawRasterStoreProvider()Creates a new provider.
-
-
Method Details
-
getShortName
Returns a generic name for this data store, used mostly in warnings or error messages.- Specified by:
getShortName
in classDataStoreProvider
- Returns:
- a short name or abbreviation for the data format.
- See Also:
-
probeContent
ReturnsProbeResult.SUPPORTED
if the given storage appears to be supported byRawRasterStore
. A supported status does not guarantee that reading will succeed, only that there appears to be a reasonable chance of success based on a brief inspection of the file header.- Specified by:
probeContent
in classDataStoreProvider
- Parameters:
connector
- information about the storage (URL, stream, JDBC connection, etc).- Returns:
ProbeResult.SUPPORTED
if the given storage seems to be readable as a RAW file.- Throws:
DataStoreException
- if an I/O error occurred.
-
open
Returns anRawRasterStore
implementation associated with this provider.- Specified by:
open
in classDataStoreProvider
- Parameters:
connector
- information about the storage (URL, file, etc).- Returns:
- a data store implementation associated with this provider for the given storage.
- Throws:
DataStoreException
- if an error occurred while creating the data store instance.- See Also:
-