org.deegree.services.wpvs.io.serializer
Class BillBoardSerializer

java.lang.Object
  extended by org.deegree.services.wpvs.io.serializer.ObjectSerializer<org.deegree.rendering.r3d.opengl.rendering.model.geometry.BillBoard>
      extended by org.deegree.services.wpvs.io.serializer.BillBoardSerializer

public class BillBoardSerializer
extends ObjectSerializer<org.deegree.rendering.r3d.opengl.rendering.model.geometry.BillBoard>

The BillBoardSerializer class TODO add class documentation here.

Version:
$Revision: 18171 $, $Date: 2009-06-17 16:00:07 +0200 (Mi, 17. Jun 2009) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Constructor Summary
BillBoardSerializer()
           
 
Method Summary
 org.deegree.rendering.r3d.opengl.rendering.model.geometry.BillBoard deserializeDataObject(byte[] buffer)
          Deserialize an object from the given byte array.
 org.deegree.rendering.r3d.opengl.rendering.model.geometry.BillBoard read(java.nio.ByteBuffer billBuffer)
          Create a PositionableModel by reading it from the buffer.
 int serializedObjectSize(DataObjectInfo<org.deegree.rendering.r3d.opengl.rendering.model.geometry.BillBoard> bb)
          Returns the size of the object after serialization, without the header information, just the fields.
 byte[] serializeObject(DataObjectInfo<org.deegree.rendering.r3d.opengl.rendering.model.geometry.BillBoard> object)
          Serializes an object using the standard serialization mechanism, ObjectOutputStream
 void write(java.nio.ByteBuffer buffer, DataObjectInfo<org.deegree.rendering.r3d.opengl.rendering.model.geometry.BillBoard> 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

BillBoardSerializer

public BillBoardSerializer()
Method Detail

read

public org.deegree.rendering.r3d.opengl.rendering.model.geometry.BillBoard read(java.nio.ByteBuffer billBuffer)
Description copied from class: ObjectSerializer
Create a PositionableModel by reading it from the buffer.

Specified by:
read in class ObjectSerializer<org.deegree.rendering.r3d.opengl.rendering.model.geometry.BillBoard>
Returns:
the instantiated PositionableModel

write

public void write(java.nio.ByteBuffer buffer,
                  DataObjectInfo<org.deegree.rendering.r3d.opengl.rendering.model.geometry.BillBoard> object)
Description copied from class: ObjectSerializer
Write the given PositionableModel to the buffer.

Specified by:
write in class ObjectSerializer<org.deegree.rendering.r3d.opengl.rendering.model.geometry.BillBoard>

serializedObjectSize

public int serializedObjectSize(DataObjectInfo<org.deegree.rendering.r3d.opengl.rendering.model.geometry.BillBoard> bb)
Description copied from class: ObjectSerializer
Returns the size of the object after serialization, without the header information, just the fields.

Specified by:
serializedObjectSize in class ObjectSerializer<org.deegree.rendering.r3d.opengl.rendering.model.geometry.BillBoard>
Parameters:
bb - to get the size from
Returns:
the size of the object after serialization, without the header information.

serializeObject

public byte[] serializeObject(DataObjectInfo<org.deegree.rendering.r3d.opengl.rendering.model.geometry.BillBoard> object)
Serializes an object using the standard serialization mechanism, ObjectOutputStream

Overrides:
serializeObject in class ObjectSerializer<org.deegree.rendering.r3d.opengl.rendering.model.geometry.BillBoard>
Parameters:
object - to be serialized with the ObjectOutputStream
Returns:
the byte array containing the serialized object.

deserializeDataObject

public org.deegree.rendering.r3d.opengl.rendering.model.geometry.BillBoard deserializeDataObject(byte[] buffer)
Deserialize an object from the given byte array.

Overrides:
deserializeDataObject in class ObjectSerializer<org.deegree.rendering.r3d.opengl.rendering.model.geometry.BillBoard>
Parameters:
buffer - containing bytes to deserialize.
Returns:
the deserialized object of type T.


Copyright © 2011. All Rights Reserved.