|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.imageio.ImageReader org.geotools.image.io.SimpleImageReader org.geotools.image.io.TextImageReader org.geotools.image.io.TextMatrixImageReader
An image decoder for matrix of floating-point numbers.
Nested Class Summary | |
static class |
TextMatrixImageReader.Spi
Service provider interface (SPI) for TextMatrixImageReader s.
|
Field Summary |
Fields inherited from class javax.imageio.ImageReader |
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales |
Constructor Summary | |
protected |
TextMatrixImageReader(javax.imageio.spi.ImageReaderSpi provider)
Construct a new image reader storing pixels as DataBuffer.TYPE_FLOAT . |
Method Summary | |
javax.media.jai.util.Range |
getExpectedRange(int imageIndex,
int bandIndex)
Returns the expected range of values for a band. |
int |
getHeight(int imageIndex)
Returns the height in pixels of the given image within the input source. |
int |
getWidth(int imageIndex)
Returns the width in pixels of the given image within the input source. |
java.awt.image.BufferedImage |
read(int imageIndex,
javax.imageio.ImageReadParam param)
Reads the image indexed by . |
void |
reset()
Restores the image reader to its initial state. |
void |
setInput(java.lang.Object input,
boolean seekForwardOnly,
boolean ignoreMetadata)
Sets the input source to use. |
Methods inherited from class org.geotools.image.io.TextImageReader |
getCharset, getLineFormat, getPadValue, getPositionString, getRawDataType, getReader |
Methods inherited from class org.geotools.image.io.SimpleImageReader |
getImageMetadata, getImageTypes, getNumBands, getNumImages, getRawImageType, getStreamMetadata |
Methods inherited from class javax.imageio.ImageReader |
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, checkReadParamBandSettings, clearAbortRequest, computeRegions, dispose, getAspectRatio, getAvailableLocales, getDefaultReadParam, getDestination, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, 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, setInput, setInput, setLocale |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected TextMatrixImageReader(javax.imageio.spi.ImageReaderSpi provider)
DataBuffer.TYPE_FLOAT
.
provider
- the ImageReaderSpi
that is
invoking this constructor, or null.Method Detail |
public void reset()
reset
in class TextImageReader
public void setInput(java.lang.Object input, boolean seekForwardOnly, boolean ignoreMetadata)
File
, URL
, BufferedReader
,
Reader
, InputStream
or ImageInputStream
.
setInput
in class TextImageReader
public int getWidth(int imageIndex) throws java.io.IOException
imageIndex
- the index of the image to be queried.
java.io.IOException
- If an error occurs reading the width information
from the input source.public int getHeight(int imageIndex) throws java.io.IOException
imageIndex
- the index of the image to be queried.
java.io.IOException
- If an error occurs reading the height information
from the input source.public java.awt.image.BufferedImage read(int imageIndex, javax.imageio.ImageReadParam param) throws java.io.IOException
imageIndex
- The index of the image to be retrieved.param
- Parameters used to control the reading process, or null.
java.io.IOException
- if an input operation failed.public javax.media.jai.util.Range getExpectedRange(int imageIndex, int bandIndex) throws java.io.IOException
getExpectedRange
in class SimpleImageReader
imageIndex
- The image index.bandIndex
- The band index.
java.io.IOException
- If an error occurs reading the data information from the input source.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |