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, 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 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)
FileStringInputStreamURLcanRead in interface DataRasterReadersource - 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.IOExceptionprotected abstract void doReadMetadata(java.lang.Object source,
AVList params)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getDescription()
getDescription in interface DataRasterReaderpublic java.lang.String[] getMimeTypes()
public java.lang.String[] getSuffixes()
getSuffixes in interface DataRasterReaderpublic boolean isElevationsRaster(java.lang.Object source,
AVList params)
FileStringInputStreamURLisElevationsRaster 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(java.lang.Object source,
AVList params)
FileStringInputStreamURLisImageryRaster in interface DataRasterReadersource - 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
FileStringInputStreamURLread 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.java.io.IOException - if an IO error occurs.public AVList readMetadata(java.lang.Object source, AVList params) throws java.io.IOException
FileStringInputStreamURLreadMetadata 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.java.io.IOException - if an IO error occurs.protected java.lang.String validateMetadata(java.lang.Object source,
AVList params)