public class TLcdEarthElevationDataTileDataCodec extends Object implements ILcdEarthTileDataCodec
TLcdEarthElevationData
.Constructor and Description |
---|
TLcdEarthElevationDataTileDataCodec()
Constructs a new
TLcdEarthElevationDataTileDataCodec . |
Modifier and Type | Method and Description |
---|---|
Object |
decodeTileData(InputStream aSource)
Decodes tile data from the given input stream.
|
void |
encodeTileData(Object aTileData,
OutputStream aDestination)
Encodes tile data to the given output stream.
|
TLcdEarthTileFormat |
getDecodedTileFormat()
Returns the tile data format that this codec can encode or
decode.
|
TLcdEarthTileFormat |
getEncodedDataFormat()
Returns the format in which this codec encodes data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
encodeTile
public TLcdEarthElevationDataTileDataCodec()
TLcdEarthElevationDataTileDataCodec
.public Object decodeTileData(InputStream aSource) throws IOException
ILcdEarthTileDataCodec
ILcdEarthTileDataCodec.getDecodedTileFormat()
.decodeTileData
in interface ILcdEarthTileDataCodec
aSource
- the input stream from which to read the tile dataIOException
- if the tile data cannot be decodedpublic void encodeTileData(Object aTileData, OutputStream aDestination) throws IOException
ILcdEarthTileDataCodec
aTileData
parameter must be an object of the type returned by ILcdEarthTileDataCodec.getDecodedTileFormat()
.encodeTileData
in interface ILcdEarthTileDataCodec
aTileData
- the tile data to be encodedaDestination
- the output stream to which to encode the tile dataIOException
- if the tile data cannot be encodedpublic TLcdEarthTileFormat getDecodedTileFormat()
ILcdEarthTileDataCodec
aTile
parameter of encodeTileData()
should always be of this type, as should the return value of
decodeTileData()
.getDecodedTileFormat
in interface ILcdEarthTileDataCodec
public TLcdEarthTileFormat getEncodedDataFormat()
ILcdEarthTileDataCodec
ILcdEarthTileDataCodec.getDecodedTileFormat()
to retrieve an
appropriate tile data codec for any particular tile.getEncodedDataFormat
in interface ILcdEarthTileDataCodec