|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.data.AbstractDataRasterReader
public abstract class AbstractDataRasterReader
Abstract base class for most DataRasterReader implementations.
| Field Summary | |
|---|---|
protected String |
description
|
protected String[] |
mimeTypes
|
protected String[] |
suffixes
|
| Constructor Summary | |
|---|---|
protected |
AbstractDataRasterReader(String description)
|
|
AbstractDataRasterReader(String[] mimeTypes,
String[] suffixes)
|
|
AbstractDataRasterReader(String description,
String[] mimeTypes,
String[] suffixes)
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gov.nasa.worldwind.avlist.AVList |
|---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Field Detail |
|---|
protected final String description
protected final String[] mimeTypes
protected final String[] suffixes
| Constructor Detail |
|---|
protected AbstractDataRasterReader(String description)
public AbstractDataRasterReader(String[] mimeTypes,
String[] suffixes)
public AbstractDataRasterReader(String description,
String[] mimeTypes,
String[] suffixes)
| Method Detail |
|---|
public boolean canRead(Object source,
AVList params)
InputStreamURL
canRead 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 boolean doCanRead(Object source,
AVList params)
protected abstract DataRaster[] doRead(Object source,
AVList params)
throws IOException
IOException
protected abstract void doReadMetadata(Object source,
AVList params)
throws IOException
IOExceptionpublic String getDescription()
getDescription in interface DataRasterReaderpublic String[] getMimeTypes()
public String[] getSuffixes()
getSuffixes in interface DataRasterReader
public boolean isElevationsRaster(Object source,
AVList params)
InputStreamURL
isElevationsRaster 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)
InputStreamURL
isImageryRaster 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
InputStreamURL
read 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
InputStreamURL
readMetadata 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.
protected String validateMetadata(Object source,
AVList params)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||