public abstract class AbstractDataRasterReader extends AVListImpl implements DataRasterReader
DataRasterReader
implementations.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
description |
protected java.lang.String[] |
mimeTypes |
protected java.lang.String[] |
suffixes |
Modifier | Constructor and Description |
---|---|
protected |
AbstractDataRasterReader(java.lang.String description) |
|
AbstractDataRasterReader(java.lang.String[] mimeTypes,
java.lang.String[] suffixes) |
|
AbstractDataRasterReader(java.lang.String description,
java.lang.String[] mimeTypes,
java.lang.String[] suffixes) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(java.lang.Object source,
AVList params)
Indicates whether this reader can read a specified data source.
|
protected boolean |
canReadSuffix(java.lang.Object source) |
protected abstract boolean |
doCanRead(java.lang.Object source,
AVList params) |
protected abstract DataRaster[] |
doRead(java.lang.Object source,
AVList params) |
protected abstract void |
doReadMetadata(java.lang.Object source,
AVList params) |
java.lang.String |
getDescription() |
java.lang.String[] |
getMimeTypes() |
java.lang.String[] |
getSuffixes() |
boolean |
isElevationsRaster(java.lang.Object source,
AVList params)
Indicates whether a data source is elevation data.
|
boolean |
isImageryRaster(java.lang.Object source,
AVList params)
Indicates whether a data source is imagery.
|
DataRaster[] |
read(java.lang.Object source,
AVList params)
Reads and returns the DataRaster instances from a data source.
|
AVList |
readMetadata(java.lang.Object source,
AVList params)
Reads and returns the metadata from a data source.
|
protected java.lang.String |
validateMetadata(java.lang.Object source,
AVList params) |
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
protected final java.lang.String description
protected final java.lang.String[] mimeTypes
protected final java.lang.String[] suffixes
protected AbstractDataRasterReader(java.lang.String description)
public AbstractDataRasterReader(java.lang.String[] mimeTypes, java.lang.String[] suffixes)
public AbstractDataRasterReader(java.lang.String description, java.lang.String[] mimeTypes, java.lang.String[] suffixes)
public boolean canRead(java.lang.Object source, AVList params)
File
String
InputStream
URL
canRead
in interface DataRasterReader
source
- the source to examine.params
- parameters required by certain reader implementations. May be null for most readers.protected boolean canReadSuffix(java.lang.Object source)
protected abstract boolean doCanRead(java.lang.Object source, AVList params)
protected abstract DataRaster[] doRead(java.lang.Object source, AVList params) throws java.io.IOException
java.io.IOException
protected abstract void doReadMetadata(java.lang.Object source, AVList params) throws java.io.IOException
java.io.IOException
public java.lang.String getDescription()
getDescription
in interface DataRasterReader
public java.lang.String[] getMimeTypes()
public java.lang.String[] getSuffixes()
getSuffixes
in interface DataRasterReader
public boolean isElevationsRaster(java.lang.Object source, AVList params)
File
String
InputStream
URL
isElevationsRaster
in interface DataRasterReader
source
- the source to examine.params
- parameters required by certain reader implementations. May be null for most readers.
TODO: Identify when parameters must be passed.public boolean isImageryRaster(java.lang.Object source, AVList params)
File
String
InputStream
URL
isImageryRaster
in interface DataRasterReader
source
- the source to examine.params
- parameters required by certain reader implementations. May be null for most readers.public DataRaster[] read(java.lang.Object source, AVList params) throws java.io.IOException
File
String
InputStream
URL
read
in interface DataRasterReader
source
- the source to read.params
- parameters required by certain reader implementations. May be null for most readers. If non-null,
the metadata is added to this list, and the list reference is the return value of this method.java.io.IOException
- if an IO error occurs.public AVList readMetadata(java.lang.Object source, AVList params) throws java.io.IOException
File
String
InputStream
URL
readMetadata
in interface DataRasterReader
source
- the source to examine.params
- parameters required by certain reader implementations. May be null for most readers. If non-null,
the metadata is added to this list, and the list reference is the return value of this method.java.io.IOException
- if an IO error occurs.protected java.lang.String validateMetadata(java.lang.Object source, AVList params)