| org.geotools.image.io.text.TextImageReader org.geotools.image.io.text.TestReader
TestReader | final class TestReader extends TextImageReader (Code) | | A dummy implementation of
TextImageReader used only by default implementation
of
TextImageReader.Spi.canDecodeInput . This class is more lightweight than
loading the real image reader implementation.
version: $Id: TestReader.java 26576 2007-08-16 18:37:13Z desruisseaux $ author: Martin Desruisseaux |
Method Summary | |
final boolean | canDecode(int readAheadLimit) Checks if the
seems to contains a readeable ASCII file.
This method tries to read the first few lines. | protected void | close() Closes the reader created by this class, or
the
user's reader to its original position. | public int | getHeight(int imageIndex) Returns a null height. | public int | getWidth(int imageIndex) Returns a null width. | public BufferedImage | read(int imageIndex, ImageReadParam param) Throws an
UnsupportedOperationException . |
canDecode | final boolean canDecode(int readAheadLimit) throws IOException(Code) | | Checks if the
seems to contains a readeable ASCII file.
This method tries to read the first few lines. The caller is responsable for invoking
TestReader.close after this method.
Parameters: readAheadLimit - Maximum number of characters to read. If this amount is reachedbut this method still unable to make a choice, then it returns null . true if the source seems readable, false otherwise. throws: IOException - If an error occured during reading. |
close | protected void close() throws IOException(Code) | | Closes the reader created by this class, or
the
user's reader to its original position.
|
getHeight | public int getHeight(int imageIndex)(Code) | | Returns a null height.
|
getWidth | public int getWidth(int imageIndex)(Code) | | Returns a null width.
|
|
|