| org.geotools.image.io.GeographicImageReader org.geotools.image.io.StreamImageReader
All known Subclasses: org.geotools.image.io.SimpleImageReader, org.geotools.image.io.text.TextImageReader, org.geotools.image.io.FileImageReader,
StreamImageReader | abstract public class StreamImageReader extends GeographicImageReader (Code) | | Base class for simple image decoders. This class provides a
StreamImageReader.getInputStream method,
which returns the
as an
InputStream for convenience.
Different kinds of input like
or
are automatically
handled.
since: 2.4 version: $Id: StreamImageReader.java 27908 2007-11-15 16:29:28Z desruisseaux $ author: Martin Desruisseaux |
Method Summary | |
protected void | close() Closes the input stream created by
StreamImageReader.getInputStream() . | public void | dispose() Allows any resources held by this reader to be released. | protected void | finalize() Closes the streams. | protected InputStream | getInputStream() Returns the
as an
object.
If the input is already an input stream, it is returned unchanged. | protected long | getStreamLength() Returns the stream length in bytes, or
-1 if unknown. | public void | reset() Restores the
StreamImageReader to its initial state. | public void | setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata) Sets the input source to use. |
StreamImageReader | protected StreamImageReader(ImageReaderSpi provider)(Code) | | Constructs a new image reader.
Parameters: provider - The ImageReaderSpi that is invoking this constructor,or null if none. |
dispose | public void dispose()(Code) | | Allows any resources held by this reader to be released. If an input stream were created
by a previous call to
StreamImageReader.getInputStream , it will be
before to dispose this reader.
|
finalize | protected void finalize() throws Throwable(Code) | | Closes the streams. This method is automatically invoked by the garbage collector.
|
reset | public void reset()(Code) | | Restores the
StreamImageReader to its initial state. If an input stream were
created by a previous call to
StreamImageReader.getInputStream , it will be
before to reset this reader.
|
setInput | public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)(Code) | | Sets the input source to use. Input may be one of the following object:
File ,
URL ,
Reader (for ASCII data),
InputStream or
ImageInputStream . If
input is
null , then any currently
set input source will be removed.
Parameters: input - The input object to use for future decoding. Parameters: seekForwardOnly - If true , images and metadata may only be readin ascending order from this input source. Parameters: ignoreMetadata - If true , metadata may be ignored during reads. See Also: StreamImageReader.getInput See Also: StreamImageReader.getInputStream |
Methods inherited from org.geotools.image.io.GeographicImageReader | protected void checkBandIndex(int imageIndex, int bandIndex) throws IOException, IndexOutOfBoundsException(Code)(Java Doc) protected void checkImageIndex(int imageIndex) throws IOException, IndexOutOfBoundsException(Code)(Java Doc) void close() throws IOException(Code)(Java Doc) protected boolean collapseNoDataValues(boolean isZeroValid, double[] nodataValues, int unusedSpace)(Code)(Java Doc) protected static void flipVertically(ImageReadParam param, int srcHeight, Rectangle srcRegion)(Code)(Java Doc) public ImageReadParam getDefaultReadParam()(Code)(Java Doc) protected BufferedImage getDestination(int imageIndex, ImageReadParam parameters, int width, int height, SampleConverter[] converters) throws IOException(Code)(Java Doc) final IndexedResourceBundle getErrorResources()(Code)(Java Doc) public GeographicMetadata getGeographicMetadata(int imageIndex) throws IOException(Code)(Java Doc) public IIOMetadata getImageMetadata(int imageIndex) throws IOException(Code)(Java Doc) public Iterator getImageTypes(int imageIndex) throws IOException(Code)(Java Doc) public int getNumBands(int imageIndex) throws IOException(Code)(Java Doc) public int getNumImages(boolean allowSearch) throws IllegalStateException, IOException(Code)(Java Doc) protected int getRawDataType(int imageIndex) throws IOException(Code)(Java Doc) public ImageTypeSpecifier getRawImageType(int imageIndex) throws IOException(Code)(Java Doc) protected ImageTypeSpecifier getRawImageType(int imageIndex, ImageReadParam parameters, SampleConverter[] converters) throws IOException(Code)(Java Doc) public IIOMetadata getStreamMetadata() throws IOException(Code)(Java Doc) public BufferedImage read(int imageIndex) throws IOException(Code)(Java Doc) public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)(Code)(Java Doc) public void warningOccurred(LogRecord record)(Code)(Java Doc)
|
|
|