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

java.lang.Object
  extended by org.deegree.services.wpvs.io.serializer.ObjectSerializer<BillBoard>
      extended by org.deegree.services.wpvs.io.serializer.BillBoardSerializer

public class BillBoardSerializer
extends ObjectSerializer<BillBoard>

The BillBoardSerializer class TODO add class documentation here.

Version:
$Revision: 30127 $, $Date: 2011-03-22 11:11:12 +0100 (Tue, 22 Mar 2011) $
Author:
Rutger Bezema, last edited by: $Author: aschmitz $

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

Specified by:
read in class ObjectSerializer<BillBoard>
Returns:
the instantiated PositionableModel

write

public void write(ByteBuffer buffer,
                  DataObjectInfo<BillBoard> object)
Description copied from class: ObjectSerializer
Write the given PositionableModel to the buffer.

Specified by:
write in class ObjectSerializer<BillBoard>

serializedObjectSize

public int serializedObjectSize(DataObjectInfo<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<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<BillBoard> object)
Serializes an object using the standard serialization mechanism, ObjectOutputStream

Overrides:
serializeObject in class ObjectSerializer<BillBoard>
Parameters:
object - to be serialized with the ObjectOutputStream
Returns:
the byte array containing the serialized object.

deserializeDataObject

public BillBoard deserializeDataObject(byte[] buffer)
Deserialize an object from the given byte array.

Overrides:
deserializeDataObject in class ObjectSerializer<BillBoard>
Parameters:
buffer - containing bytes to deserialize.
Returns:
the deserialized object of type T.


Copyright © 2011. All Rights Reserved.