Class TLcdEarthTerrainTileVertexArrayTileDataCodec
java.lang.Object
com.luciad.earth.repository.codec.TLcdEarthVertexArrayTileDataCodec
com.luciad.earth.repository.codec.TLcdEarthTerrainTileVertexArrayTileDataCodec
- All Implemented Interfaces:
ILcdEarthTileDataCodec
Tile data codec for
TLcdEarthTerrainTileVertexArray
objects.- Since:
- 8.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecodeTileData
(InputStream aSource) Decodes tile data from the given input stream.protected TLcdEarthVertexArray
decodeVertices
(DataInputStream aInputStream, TLcdEarthVertexArray aVertexArraySFCT) void
encodeTileData
(Object aTile, OutputStream aOutputStream) Encodes tile data to the given output stream.Returns the tile data format that this codec can encode or decode.Returns the format in which this codec encodes data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.earth.repository.codec.ILcdEarthTileDataCodec
encodeTile
-
Constructor Details
-
TLcdEarthTerrainTileVertexArrayTileDataCodec
public TLcdEarthTerrainTileVertexArrayTileDataCodec()
-
-
Method Details
-
decodeTileData
Description copied from interface:ILcdEarthTileDataCodec
Decodes tile data from the given input stream. The return value of this method must be an object of the type returned byILcdEarthTileDataCodec.getDecodedTileFormat()
.- Specified by:
decodeTileData
in interfaceILcdEarthTileDataCodec
- Overrides:
decodeTileData
in classTLcdEarthVertexArrayTileDataCodec
- Parameters:
aSource
- the input stream from which to read the tile data- Returns:
- the decoded tile data
- Throws:
IOException
- if the tile data cannot be decoded
-
encodeTileData
Description copied from interface:ILcdEarthTileDataCodec
Encodes tile data to the given output stream. TheaTileData
parameter must be an object of the type returned byILcdEarthTileDataCodec.getDecodedTileFormat()
.- Specified by:
encodeTileData
in interfaceILcdEarthTileDataCodec
- Overrides:
encodeTileData
in classTLcdEarthVertexArrayTileDataCodec
- Parameters:
aTile
- the tile data to be encodedaOutputStream
- the output stream to which to encode the tile data- Throws:
IOException
- if the tile data cannot be encoded
-
getDecodedTileFormat
Description copied from interface:ILcdEarthTileDataCodec
Returns the tile data format that this codec can encode or decode. TheaTile
parameter ofencodeTileData()
should always be of this type, as should the return value ofdecodeTileData()
.- Specified by:
getDecodedTileFormat
in interfaceILcdEarthTileDataCodec
- Overrides:
getDecodedTileFormat
in classTLcdEarthVertexArrayTileDataCodec
- Returns:
- the format of the tile data type that this codec can encode or decode
-
getEncodedDataFormat
Description copied from interface:ILcdEarthTileDataCodec
Returns the format in which this codec encodes data. An example could be "JPEG" or "PNG" for image data. The format is used in conjunction withILcdEarthTileDataCodec.getDecodedTileFormat()
to retrieve an appropriate tile data codec for any particular tile.- Specified by:
getEncodedDataFormat
in interfaceILcdEarthTileDataCodec
- Overrides:
getEncodedDataFormat
in classTLcdEarthVertexArrayTileDataCodec
- Returns:
- a format in which this codec encodes data
-
decodeVertices
protected TLcdEarthVertexArray decodeVertices(DataInputStream aInputStream, TLcdEarthVertexArray aVertexArraySFCT) throws IOException - Overrides:
decodeVertices
in classTLcdEarthVertexArrayTileDataCodec
- Throws:
IOException
-