NASA World Wind

gov.nasa.worldwind.data
Class AbstractDataRasterReader

java.lang.Object
  extended by gov.nasa.worldwind.data.AbstractDataRasterReader
All Implemented Interfaces:
DataRasterReader
Direct Known Subclasses:
BILRasterReader, GeotiffRasterReader, ImageIORasterReader, RPFRasterReader

public abstract class AbstractDataRasterReader
extends Object
implements DataRasterReader


Constructor Summary
protected AbstractDataRasterReader(String description)
           
  AbstractDataRasterReader(String[] mimeTypes, String[] suffixes)
           
  AbstractDataRasterReader(String description, String[] mimeTypes, String[] suffixes)
           
 
Method Summary
 boolean canRead(DataSource source)
           
protected  boolean canReadSuffix(DataSource source)
           
protected abstract  boolean doCanRead(DataSource source)
           
protected abstract  DataRaster[] doRead(DataSource source)
           
protected abstract  void doReadMetadata(DataSource source, AVList values)
           
 String getDescription()
           
 String[] getMimeTypes()
           
 String[] getSuffixes()
           
protected static String pathFor(DataSource source)
           
 DataRaster[] read(DataSource source)
           
 void readMetadata(DataSource source, AVList values)
           
protected  String validateMetadata(DataSource source, AVList values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDataRasterReader

protected AbstractDataRasterReader(String description)

AbstractDataRasterReader

public AbstractDataRasterReader(String[] mimeTypes,
                                String[] suffixes)

AbstractDataRasterReader

public AbstractDataRasterReader(String description,
                                String[] mimeTypes,
                                String[] suffixes)
Method Detail

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)

NASA World Wind