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, setValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesprotected final String description
protected final String[] mimeTypes
protected final String[] suffixes
protected AbstractDataRasterReader(String description)
public boolean canRead(Object source, AVList params)
InputStreamURLcanRead in interface DataRasterReadersource - 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
IOExceptionprotected abstract void doReadMetadata(Object source, AVList params) throws IOException
IOExceptionpublic String getDescription()
getDescription in interface DataRasterReaderpublic String[] getMimeTypes()
public String[] getSuffixes()
getSuffixes in interface DataRasterReaderpublic boolean isElevationsRaster(Object source, AVList params)
InputStreamURLisElevationsRaster in interface DataRasterReadersource - 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)
InputStreamURLisImageryRaster in interface DataRasterReadersource - 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
InputStreamURLread in interface DataRasterReadersource - 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
InputStreamURLreadMetadata in interface DataRasterReadersource - 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.