gov.nasa.worldwind.data
Class AbstractDataRasterReader
java.lang.Object
gov.nasa.worldwind.data.AbstractDataRasterReader
- All Implemented Interfaces:
- DataRasterReader
- Direct Known Subclasses:
- BILRasterReader, GeotiffRasterReader, ImageIORasterReader, RPFRasterReader
public abstract class AbstractDataRasterReader
- extends Object
- implements DataRasterReader
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDataRasterReader
protected AbstractDataRasterReader(String description)
AbstractDataRasterReader
public AbstractDataRasterReader(String[] mimeTypes,
String[] suffixes)
AbstractDataRasterReader
public AbstractDataRasterReader(String description,
String[] mimeTypes,
String[] suffixes)
canRead
public boolean canRead(DataSource source)
- Specified by:
canRead
in interface DataRasterReader
canReadSuffix
protected boolean canReadSuffix(DataSource source)
doCanRead
protected abstract boolean doCanRead(DataSource source)
doRead
protected abstract DataRaster[] doRead(DataSource source)
throws IOException
- Throws:
IOException
doReadMetadata
protected abstract void doReadMetadata(DataSource source,
AVList values)
throws IOException
- Throws:
IOException
getDescription
public String getDescription()
- Specified by:
getDescription
in interface DataRasterReader
getMimeTypes
public String[] getMimeTypes()
- Specified by:
getMimeTypes
in interface DataRasterReader
getSuffixes
public String[] getSuffixes()
- Specified by:
getSuffixes
in interface DataRasterReader
pathFor
protected static String pathFor(DataSource source)
read
public DataRaster[] read(DataSource source)
throws IOException
- Specified by:
read
in interface DataRasterReader
- Throws:
IOException
readMetadata
public void readMetadata(DataSource source,
AVList values)
throws IOException
- Specified by:
readMetadata
in interface DataRasterReader
- Throws:
IOException
validateMetadata
protected String validateMetadata(DataSource source,
AVList values)