public class TLcdGeoTIFFImageDecoder extends Object implements ILcdTileDecoder
ILcdTileDecoder
decodes GeoTIFF images and TIFF images
in general. Its implementation is based on the Java Advanced Imaging library
(JAI), which supports most storage and compression schemes.
This class is thread-safe.
Constructor and Description |
---|
TLcdGeoTIFFImageDecoder() |
Modifier and Type | Method and Description |
---|---|
boolean |
isTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
ILcdTileInfo |
readTile(String aFileName,
int aImageIndex,
int aSubTileWidth,
int aSubTileHeight,
int aRowIndex,
int aColumnIndex,
ILcdBuffer aBuffer)
Reads a sub-tile from a file.
|
ILcdTileInfo |
readTile(URL aURL,
int aImageIndex,
int aSubTileWidth,
int aSubTileHeight,
int aRowIndex,
int aColumnIndex,
ILcdBuffer aBuffer)
Reads a sub-tile from a URL.
|
protected ILcdTileInfo |
readTileFromStream(com.sun.media.jai.codec.SeekableStream aStream,
int aImageIndex,
int aSubTileWidth,
int aSubTileHeight,
int aRowIndex,
int aColumnIndex,
ILcdBuffer aBuffer) |
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setTraceOn(boolean aTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
public static void setClassTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.public void setTraceOn(boolean aTraceOn)
true
or false
as argument automatically turns
off tracing for all other class instances for which
setTraceOn
has not been called.
If the argument is false
then only the informative, warning
and error log messages are recorded.aTraceOn
- if true then all log messages are recorded for this
instance. If false, then only the informative, warning and
error log messages are recorded.public boolean isTraceOn()
true
if tracing is enabled for this class.protected ILcdTileInfo readTileFromStream(com.sun.media.jai.codec.SeekableStream aStream, int aImageIndex, int aSubTileWidth, int aSubTileHeight, int aRowIndex, int aColumnIndex, ILcdBuffer aBuffer) throws TLcdCodecException
TLcdCodecException
public ILcdTileInfo readTile(URL aURL, int aImageIndex, int aSubTileWidth, int aSubTileHeight, int aRowIndex, int aColumnIndex, ILcdBuffer aBuffer) throws TLcdCodecException
ILcdTileDecoder
readTile
in interface ILcdTileDecoder
aURL
- the URL containing the tile.aImageIndex
- the index of the tile in the given URL (if applicable).aSubTileWidth
- the width of the sub-tiles, expressed in pixels.aSubTileHeight
- the height of the sub-tiles, expressed in pixels.aRowIndex
- the row number of the sub-tile to be decoded.aColumnIndex
- the column number of the sub-tile to be decoded.aBuffer
- the buffer in which the decoded bytes will be stored.ILcdTileInfo
information about the decoded tile.TLcdCodecException
- in case of decoding problems.public ILcdTileInfo readTile(String aFileName, int aImageIndex, int aSubTileWidth, int aSubTileHeight, int aRowIndex, int aColumnIndex, ILcdBuffer aBuffer) throws TLcdCodecException
ILcdTileDecoder
readTile
in interface ILcdTileDecoder
aFileName
- the name of the file containing the tile.aImageIndex
- the index of the tile in the given file (if applicable).aSubTileWidth
- the width of the sub-tiles, expressed in pixels.aSubTileHeight
- the height of the sub-tiles, expressed in pixels.aRowIndex
- the row number of the sub-tile to be decoded.aColumnIndex
- the column number of the sub-tile to be decoded.aBuffer
- the buffer in which the decoded bytes will be stored.ILcdTileInfo
information about the decoded tile.TLcdCodecException
- in case of decoding problems.