public class TLcdEarthTextureDataTileDataCodec extends Object implements ILcdEarthTileDataCodec
TLcdEarthTextureData
objects.Constructor and Description |
---|
TLcdEarthTextureDataTileDataCodec() |
Modifier and Type | Method and Description |
---|---|
Object |
decodeTileData(InputStream aSource)
Decodes tile data from the given input stream.
|
void |
encodeTileData(Object aTile,
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 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 aTile, OutputStream aDestination) throws IOException
ILcdEarthTileDataCodec
aTileData
parameter must be an object of the type returned by ILcdEarthTileDataCodec.getDecodedTileFormat()
.encodeTileData
in interface ILcdEarthTileDataCodec
aTile
- 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