public abstract class AbstractDataRasterReader extends AVListImpl implements DataRasterReader
DataRasterReader
implementations.Modifier and Type | Field and Description |
---|---|
protected String |
description |
protected String[] |
mimeTypes |
protected String[] |
suffixes |
Modifier | Constructor and Description |
---|---|
protected |
AbstractDataRasterReader(String description) |
|
AbstractDataRasterReader(String[] mimeTypes,
String[] suffixes) |
|
AbstractDataRasterReader(String description,
String[] mimeTypes,
String[] suffixes) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(Object source,
AVList params)
Indicates whether this reader can read a specified data source.
|
protected boolean |
canReadSuffix(Object source) |
protected abstract boolean |
doCanRead(Object source,
AVList params) |
protected abstract DataRaster[] |
doRead(Object source,
AVList params) |
protected abstract void |
doReadMetadata(Object source,
AVList params) |
String |
getDescription() |
String[] |
getMimeTypes() |
String[] |
getSuffixes() |
boolean |
isElevationsRaster(Object source,
AVList params)
Indicates whether a data source is elevation data.
|
boolean |
isImageryRaster(Object source,
AVList params)
Indicates whether a data source is imagery.
|
DataRaster[] |
read(Object source,
AVList params)
Reads and returns the DataRaster instances from a data source.
|
AVList |
readMetadata(Object source,
AVList params)
Reads and returns the metadata from a data source.
|
protected String |
validateMetadata(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 String description
protected final String[] mimeTypes
protected final String[] suffixes
protected AbstractDataRasterReader(String description)
public boolean canRead(Object source, AVList params)
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(Object source)
protected abstract DataRaster[] doRead(Object source, AVList params) throws IOException
IOException
protected abstract void doReadMetadata(Object source, AVList params) throws IOException
IOException
public String getDescription()
getDescription
in interface DataRasterReader
public String[] getMimeTypes()
public String[] getSuffixes()
getSuffixes
in interface DataRasterReader
public boolean isElevationsRaster(Object source, AVList params)
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(Object source, AVList params)
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(Object source, AVList params) throws IOException
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.IOException
- if an IO error occurs.public AVList readMetadata(Object source, AVList params) throws IOException
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.IOException
- if an IO error occurs.