|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.imageio.ImageReader
org.geotools.image.io.GeographicImageReader
org.geotools.image.io.StreamImageReader
org.geotools.image.io.text.TextImageReader
org.geotools.image.io.text.TextMatrixImageReader
public class TextMatrixImageReader
An image decoder for matrix of floating-point numbers. The default implementation creates
rasters of DataBuffer.TYPE_FLOAT
. An easy way to change this type is to overwrite
the GeographicImageReader.getRawDataType(int)
method.
Nested Class Summary | |
---|---|
static class |
TextMatrixImageReader.Spi
Service provider interface (SPI) for TextMatrixImageReader s. |
Field Summary |
---|
Fields inherited from class org.geotools.image.io.StreamImageReader |
---|
closeOnReset |
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)
Constructs a new image reader. |
Method Summary | |
---|---|
void |
close()
Closes the input stream and disposes the resources that was specific to that stream. |
int |
getHeight(int imageIndex)
Returns the height in pixels of the given image within the input source. |
javax.imageio.metadata.IIOMetadata |
getImageMetadata(int imageIndex)
Returns metadata associated with the given image. |
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 imageIndex . |
Methods inherited from class org.geotools.image.io.text.TextImageReader |
---|
getCharset, getLineFormat, getPadValue, getPositionString, getReader, isComment |
Methods inherited from class org.geotools.image.io.StreamImageReader |
---|
dispose, finalize, getInputStream, getStreamLength, reset, setInput |
Methods inherited from class org.geotools.image.io.GeographicImageReader |
---|
checkBandIndex, checkImageIndex, collapseNoDataValues, flipVertically, getDefaultReadParam, getDestination, getDimension, getGeographicMetadata, getImageTypes, getNumBands, getNumImages, getRawDataType, getRawImageType, getRawImageType, getStreamMetadata, read, warningOccurred |
Methods inherited from class javax.imageio.ImageReader |
---|
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, checkReadParamBandSettings, clearAbortRequest, computeRegions, getAspectRatio, getAvailableLocales, 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, 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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TextMatrixImageReader(javax.imageio.spi.ImageReaderSpi provider)
provider
- the provider that is invoking this constructor, or null
if none.Method Detail |
---|
public int getWidth(int imageIndex) throws java.io.IOException
getWidth
in class javax.imageio.ImageReader
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
getHeight
in class javax.imageio.ImageReader
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 javax.imageio.metadata.IIOMetadata getImageMetadata(int imageIndex) throws java.io.IOException
getImageMetadata
in class GeographicImageReader
imageIndex
- The image index.
null
if none.
java.io.IOException
- If an error occurs reading the data information from the input source.public java.awt.image.BufferedImage read(int imageIndex, javax.imageio.ImageReadParam param) throws java.io.IOException
imageIndex
.
read
in class javax.imageio.ImageReader
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 void close() throws java.io.IOException
close
in class TextImageReader
java.io.IOException
- if an error occured while closing the stream.StreamImageReader.closeOnReset
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |