public class BasicDataRasterReaderFactory extends Object implements DataRasterReaderFactory
DataRasterReaderFactory
with a default list of readers. The list
includes the following readers:
To specify a different factory, set theRPFRasterReader
DTEDRasterReader
GDALDataRasterReader
GeotiffRasterReader
BILRasterReader
ImageIORasterReader
AVKey.DATA_RASTER_READER_FACTORY_CLASS_NAME
value in Configuration
, either directly or via the World Wind configuration file. To add
readers to the default set, create a subclass of this class, override findReaderFor(Object,
gov.nasa.worldwind.avlist.AVList)
, and specify the new class to the configuration.Modifier and Type | Field and Description |
---|---|
protected DataRasterReader[] |
readers
The default list of readers.
|
Constructor and Description |
---|
BasicDataRasterReaderFactory() |
Modifier and Type | Method and Description |
---|---|
DataRasterReader |
findReaderFor(Object source,
AVList params)
Search the list of available data raster readers for one that will read a specified data source.
|
DataRasterReader |
findReaderFor(Object source,
AVList params,
DataRasterReader[] readers)
Search a specified list of data raster readers for one that will read a specified data source.
|
DataRasterReader[] |
getReaders()
Returns this class' list of readers.
|
protected DataRasterReader[] readers
public DataRasterReader findReaderFor(Object source, AVList params)
Configuration
, as specified by the AVKey.DATA_RASTER_READER_FACTORY_CLASS_NAME
.
If no factory is specified in the configuration, BasicDataRasterReaderFactory
is
used.findReaderFor
in interface DataRasterReaderFactory
source
- the source to read. May by a File
, a file path, a URL or an InputStream
.params
- optional metadata associated with the data source that might be useful in determining the data
reader. TODO: How does the caller determine which parameters are necessary or useful?public DataRasterReader findReaderFor(Object source, AVList params, DataRasterReader[] readers)
findReaderFor
in interface DataRasterReaderFactory
source
- the source to read. May by a File
, a file path, a URL or an InputStream
.params
- optional metadata associated with the data source that might be useful in determining the data
reader.readers
- the list of readers to search.public DataRasterReader[] getReaders()
getReaders
in interface DataRasterReaderFactory