|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectImageReader
BaseImageReader
BaseNetCDFImageReader
public final class BaseNetCDFImageReader
Base implementation for NetCDF based image flat reader.
Each ImageIndex corresponds to a 2D-slice of NetCDF.
BaseNetCDFImageReader is a ImageReader able to create
RenderedImage from NetCDF-CF sources.
| Field Summary | |
|---|---|
protected static Logger |
LOGGER
|
| Fields inherited from class ImageReader |
|---|
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales |
| Constructor Summary | |
|---|---|
BaseNetCDFImageReader(ImageReaderSpi originatingProvider)
Explicit Constructor getting ImageReaderSpi originatingProvider
as actual parameter. |
|
| Method Summary | |
|---|---|
void |
dispose()
Allows any resources held by this reader to be released. |
NetCDFUtilities.KeyValuePair |
getAttribute(int imageIndex,
int attributeIndex)
|
String |
getAttributeAsString(int imageIndex,
String attributeName)
|
String |
getAttributeAsString(int imageIndex,
String attributeName,
boolean isUnsigned)
|
NetcdfDataset |
getDataset()
|
NetCDFUtilities.KeyValuePair |
getGlobalAttribute(int attributeIndex)
|
int |
getHeight(int imageIndex)
|
IIOMetadata |
getImageMetadata(int imageIndex)
|
Iterator<ImageTypeSpecifier> |
getImageTypes(int imageIndex)
|
Map<Range,?> |
getIndexMap()
|
int |
getNumAttributes(int imageIndex)
|
int |
getNumGlobalAttributes()
|
IIOMetadata |
getStreamMetadata()
|
String |
getVariableName(int imageIndex)
|
BaseVariableWrapper |
getVariableWrapper(int imageIndex)
|
int |
getWidth(int imageIndex)
|
protected void |
initialize()
|
BufferedImage |
read(int imageIndex,
ImageReadParam param)
|
void |
reset()
Reset the status of this reader |
void |
setIndexMap(Map<Range,? extends BaseVariableWrapper> indexMap)
|
void |
setInput(Object input)
Sets the input source to use within this reader. |
void |
setInput(Object input,
boolean seekForwardOnly)
Sets the input source to use within this reader. |
void |
setInput(Object input,
boolean seekForwardOnly,
boolean ignoreMetadata)
Sets the input source to use within this reader. |
void |
setNumGlobalAttributes(int numGlobalAttributes)
|
| Methods inherited from class BaseImageReader |
|---|
checkImageIndex, getNumImages, setNumImages |
| Methods inherited from class ImageReader |
|---|
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, checkReadParamBandSettings, clearAbortRequest, computeRegions, getAspectRatio, getAvailableLocales, getDefaultReadParam, getDestination, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, hasThumbnails, isIgnoringMetadata, isImageTiled, isRandomAccessEasy, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, readAll, readAll, readAsRenderedImage, readerSupportsThumbnails, readRaster, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, setLocale |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Logger LOGGER
| Constructor Detail |
|---|
public BaseNetCDFImageReader(ImageReaderSpi originatingProvider)
ImageReaderSpi originatingProvider
as actual parameter.
originatingProvider - ImageReaderSpi| Method Detail |
|---|
public Map<Range,?> getIndexMap()
public void setIndexMap(Map<Range,? extends BaseVariableWrapper> indexMap)
public NetcdfDataset getDataset()
public void setNumGlobalAttributes(int numGlobalAttributes)
public void setInput(Object input,
boolean seekForwardOnly,
boolean ignoreMetadata)
URIs,
Files, Strings, URLs, ImageInputStreams
are accepted input types.seekForwardOnly and ignoreMetadata)
are actually ignored.
setInput in class ImageReaderinput - the Object to be set as input of this reader.
exception - IllegalArgumentException in case the provided
input Object cannot be properly parsed and used
as input for the reader.protected void initialize()
public void setInput(Object input,
boolean seekForwardOnly)
URIs,
Files (also representing a Directory), Strings (also
representing the path of a Directory), URLs,
ImageInputStreams are accepted input types.seekForwardOnly is actually ignored.
setInput in class ImageReaderinput - the Object to be set as input of this reader.
{@link - IllegalArgumentException}
in case the provided input Object cannot be
properly parsed and used as input for the reader.public void setInput(Object input)
URIs,
Files (also representing a Directory), Strings (also
representing the path of a Directory), URLs,
ImageInputStreams are accepted input types.
setInput in class ImageReaderinput - the Object to be set as input of this reader.
{@link - IllegalArgumentException}
in case the provided input Object cannot be
properly parsed and used as input for the reader.
public int getHeight(int imageIndex)
throws IOException
getHeight in class ImageReaderIOExceptionImageReader.getHeight(int)public BaseVariableWrapper getVariableWrapper(int imageIndex)
public Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex)
throws IOException
getImageTypes in class ImageReaderIOException
public int getWidth(int imageIndex)
throws IOException
getWidth in class ImageReaderIOExceptionpublic void dispose()
dispose in class BaseImageReaderIOExceptionpublic void reset()
reset in class ImageReader
public String getAttributeAsString(int imageIndex,
String attributeName)
public String getAttributeAsString(int imageIndex,
String attributeName,
boolean isUnsigned)
public NetCDFUtilities.KeyValuePair getAttribute(int imageIndex,
int attributeIndex)
throws IOException
IOExceptionpublic String getVariableName(int imageIndex)
public int getNumGlobalAttributes()
public int getNumAttributes(int imageIndex)
public NetCDFUtilities.KeyValuePair getGlobalAttribute(int attributeIndex)
throws IOException
IOException
public IIOMetadata getImageMetadata(int imageIndex)
throws IOException
getImageMetadata in class ImageReaderIOException
public IIOMetadata getStreamMetadata()
throws IOException
getStreamMetadata in class ImageReaderIOException
public BufferedImage read(int imageIndex,
ImageReadParam param)
read in class ImageReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||