|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectImageReader
BaseImageReader
NetCDFImageReader
public class NetCDFImageReader
Base implementation for NetCDF-CF image flat reader. Pixels are assumed
organized according the COARDS convention (a precursor of CF Metadata conventions), i.e. in (t,z,y,x)
order, where x varies faster. The image is created from the two
last dimensions (x,y).
Each ImageIndex corresponds to a 2D-slice of NetCDF.
NetCDFImageReader
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 | |
---|---|
NetCDFImageReader(ImageReaderSpi originatingProvider)
Explicit Constructor getting ImageReaderSpi originatingProvider
as actual parameter. |
Method Summary | |
---|---|
void |
dispose()
Allows any resources held by this reader to be released. |
int |
getHeight(int imageIndex)
|
IIOMetadata |
getImageMetadata(int imageIndex)
|
Iterator<ImageTypeSpecifier> |
getImageTypes(int imageIndex)
|
IIOMetadata |
getStreamMetadata()
|
protected NetCDFImageReader.NetCDFVariableWrapper |
getVariableWrapper(int imageIndex)
|
int |
getWidth(int imageIndex)
|
protected void |
initialize()
Initialize main properties for this reader. |
boolean |
isCancel()
Invoked by the NetCDF library during read operation in order to check if the task has been canceled. |
BufferedImage |
read(int imageIndex,
ImageReadParam param)
|
void |
setError(String message)
Invoked by the NetCDF library when an error occurred during the read operation. |
void |
setInput(Object input)
|
void |
setInput(Object input,
boolean seekForwardOnly)
|
void |
setInput(Object input,
boolean seekForwardOnly,
boolean ignoreMetadata)
|
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, reset, 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 NetCDFImageReader(ImageReaderSpi originatingProvider)
ImageReaderSpi
originatingProvider
as actual parameter.
originatingProvider
- ImageReaderSpi
Method Detail |
---|
protected void initialize()
exception
- InvalidRangeException
protected NetCDFImageReader.NetCDFVariableWrapper getVariableWrapper(int imageIndex)
public IIOMetadata getImageMetadata(int imageIndex) throws IOException
getImageMetadata
in class ImageReader
IOException
ImageReader.getImageMetadata(int)
public IIOMetadata getStreamMetadata() throws IOException
getStreamMetadata
in class ImageReader
IOException
public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException
read
in class ImageReader
IOException
ImageReader.read(int, javax.imageio.ImageReadParam)
public void dispose()
dispose
in class BaseImageReader
IOException
public void setError(String message)
setError
in interface CancelTask
public boolean isCancel()
isCancel
in interface CancelTask
public int getHeight(int imageIndex) throws IOException
getHeight
in class ImageReader
IOException
public Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex) throws IOException
getImageTypes
in class ImageReader
IOException
public int getWidth(int imageIndex) throws IOException
getWidth
in class ImageReader
IOException
public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
setInput
in class ImageReader
public void setInput(Object input, boolean seekForwardOnly)
setInput
in class ImageReader
public void setInput(Object input)
setInput
in class ImageReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |