synergynetframework.appsystem.services.net.objectmessaging.utility.serializers
Class ShortSerializer

java.lang.Object
  extended by synergynetframework.appsystem.services.net.objectmessaging.utility.serializers.Serializer
      extended by synergynetframework.appsystem.services.net.objectmessaging.utility.serializers.ShortSerializer

public class ShortSerializer
extends Serializer

The Class ShortSerializer.


Constructor Summary
ShortSerializer()
          Instantiates a new short serializer.
ShortSerializer(java.lang.Boolean optimizePositive)
          Instantiates a new short serializer.
 
Method Summary
static short get(java.nio.ByteBuffer buffer, boolean optimizePositive)
          Gets the.
static short put(java.nio.ByteBuffer buffer, short value, boolean optimizePositive)
          Put.
 java.lang.Short readObjectData(ConnectionHandler connectionHandler, java.nio.ByteBuffer buffer, java.lang.Class type, boolean lengthKnown)
          Read object data.
 void writeObjectData(ConnectionHandler connectionHandler, java.nio.ByteBuffer buffer, java.lang.Object object, boolean lengthKnown)
          Write object data.
 
Methods inherited from class synergynetframework.appsystem.services.net.objectmessaging.utility.serializers.Serializer
newInstance, readNull, readObject, readObjectData, setCanBeNull, writeNull, writeObject, writeObjectData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortSerializer

public ShortSerializer()
Instantiates a new short serializer.


ShortSerializer

public ShortSerializer(java.lang.Boolean optimizePositive)
Instantiates a new short serializer.

Parameters:
optimizePositive - the optimize positive
Method Detail

get

public static short get(java.nio.ByteBuffer buffer,
                        boolean optimizePositive)
Gets the.

Parameters:
buffer - the buffer
optimizePositive - the optimize positive
Returns:
the short

put

public static short put(java.nio.ByteBuffer buffer,
                        short value,
                        boolean optimizePositive)
Put.

Parameters:
buffer - the buffer
value - the value
optimizePositive - the optimize positive
Returns:
the short

readObjectData

public java.lang.Short readObjectData(ConnectionHandler connectionHandler,
                                      java.nio.ByteBuffer buffer,
                                      java.lang.Class type,
                                      boolean lengthKnown)
                               throws SerializationException
Description copied from class: Serializer
Read object data.

Specified by:
readObjectData in class Serializer
Parameters:
connectionHandler - the connection handler
buffer - the buffer
type - the type
lengthKnown - the length known
Returns:
the t
Throws:
SerializationException - the serialization exception

writeObjectData

public void writeObjectData(ConnectionHandler connectionHandler,
                            java.nio.ByteBuffer buffer,
                            java.lang.Object object,
                            boolean lengthKnown)
                     throws SerializationException
Description copied from class: Serializer
Write object data.

Specified by:
writeObjectData in class Serializer
Parameters:
connectionHandler - the connection handler
buffer - the buffer
object - the object
lengthKnown - the length known
Throws:
SerializationException - the serialization exception