|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.services.wpvs.io.serializer.ObjectSerializer<WorldRenderableObject> org.deegree.services.wpvs.io.serializer.WROSerializer
public class WROSerializer
The WROSerializer
class TODO add class documentation here.
Constructor Summary | |
---|---|
WROSerializer()
|
Method Summary | |
---|---|
WorldRenderableObject |
deserializeDataObject(byte[] buffer)
Deserialize an object from the given byte array. |
DirectGeometryBuffer |
getGeometryBuffer()
|
WorldRenderableObject |
read(ByteBuffer buffer)
Create a PositionableModel by reading it from the buffer. |
int |
serializedObjectSize(DataObjectInfo<WorldRenderableObject> object)
Returns the size of the object after serialization, without the header information, just the fields. |
byte[] |
serializeObject(DataObjectInfo<WorldRenderableObject> doi)
Serializes an object using the standard serialization mechanism, ObjectOutputStream |
void |
setGeometryBuffer(DirectGeometryBuffer geometryBuffer)
|
void |
write(ByteBuffer buffer,
DataObjectInfo<WorldRenderableObject> object)
Write the given PositionableModel to the buffer. |
Methods inherited from class org.deegree.services.wpvs.io.serializer.ObjectSerializer |
---|
allocateByteBuffer, getHeaderSize, readID, readObjectSize, readString, readTime, sizeOfSerializedObject, sizeOfString, skipHeader, writeHeader, writeString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WROSerializer()
Method Detail |
---|
public final DirectGeometryBuffer getGeometryBuffer()
public final void setGeometryBuffer(DirectGeometryBuffer geometryBuffer)
geometryBuffer
- the geometryBuffer to setpublic WorldRenderableObject read(ByteBuffer buffer)
ObjectSerializer
PositionableModel
by reading it from the buffer.
read
in class ObjectSerializer<WorldRenderableObject>
PositionableModel
public int serializedObjectSize(DataObjectInfo<WorldRenderableObject> object)
ObjectSerializer
serializedObjectSize
in class ObjectSerializer<WorldRenderableObject>
object
- to get the size from
public void write(ByteBuffer buffer, DataObjectInfo<WorldRenderableObject> object)
ObjectSerializer
PositionableModel
to the buffer.
write
in class ObjectSerializer<WorldRenderableObject>
public byte[] serializeObject(DataObjectInfo<WorldRenderableObject> doi)
ObjectOutputStream
serializeObject
in class ObjectSerializer<WorldRenderableObject>
doi
- to be serialized with a DataOutputStream
public WorldRenderableObject deserializeDataObject(byte[] buffer)
deserializeDataObject
in class ObjectSerializer<WorldRenderableObject>
buffer
- containing bytes to deserialize.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |