org.simantics.databoard.serialization
Class BinarySerializationFormat.LongSerializer

java.lang.Object
  extended by org.simantics.databoard.serialization.Serializer
      extended by org.simantics.databoard.serialization.Serializer.NonRecursiveSerializer
          extended by org.simantics.databoard.serialization.BinarySerializationFormat.LongSerializer
Enclosing class:
BinarySerializationFormat

public static class BinarySerializationFormat.LongSerializer
extends Serializer.NonRecursiveSerializer


Nested Class Summary
 
Nested classes/interfaces inherited from class org.simantics.databoard.serialization.Serializer
Serializer.CompositeSerializer, Serializer.NonRecursiveSerializer, Serializer.RecursiveSerializer
 
Method Summary
 java.lang.Object deserialize(BinaryReadable in)
           
 java.lang.Integer getConstantSize()
          Get constant size of the data type in its binary serialized format
 int getSize(java.lang.Object obj)
           
 void serialize(BinaryWriteable out, java.lang.Object obj)
           
 void skip(BinaryReadable in)
           
 
Methods inherited from class org.simantics.databoard.serialization.Serializer.NonRecursiveSerializer
deserialize, getSize, serialize, skip
 
Methods inherited from class org.simantics.databoard.serialization.Serializer
deserialize, deserialize, deserialize, getInputStream, postConstruction, serialize, serialize, serialize, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

deserialize

public java.lang.Object deserialize(BinaryReadable in)
                             throws java.io.IOException,
                                    SerializationException,
                                    BindingException
Specified by:
deserialize in class Serializer
Throws:
java.io.IOException
SerializationException
BindingException

skip

public void skip(BinaryReadable in)
          throws java.io.IOException
Specified by:
skip in class Serializer
Throws:
java.io.IOException

serialize

public void serialize(BinaryWriteable out,
                      java.lang.Object obj)
               throws java.io.IOException,
                      BindingException
Specified by:
serialize in class Serializer
Throws:
java.io.IOException
BindingException

getConstantSize

public java.lang.Integer getConstantSize()
Description copied from class: Serializer
Get constant size of the data type in its binary serialized format

Specified by:
getConstantSize in class Serializer
Returns:
size in bytes or null if not fixed

getSize

public int getSize(java.lang.Object obj)
            throws SerializationException,
                   BindingException
Specified by:
getSize in class Serializer
Throws:
SerializationException
BindingException