|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.appsystem.services.net.objectmessaging.utility.serializers.Serializer
synergynetframework.appsystem.services.net.objectmessaging.utility.serializers.ShortSerializer
public class ShortSerializer
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 |
---|
public ShortSerializer()
public ShortSerializer(java.lang.Boolean optimizePositive)
optimizePositive
- the optimize positiveMethod Detail |
---|
public static short get(java.nio.ByteBuffer buffer, boolean optimizePositive)
buffer
- the bufferoptimizePositive
- the optimize positive
public static short put(java.nio.ByteBuffer buffer, short value, boolean optimizePositive)
buffer
- the buffervalue
- the valueoptimizePositive
- the optimize positive
public java.lang.Short readObjectData(ConnectionHandler connectionHandler, java.nio.ByteBuffer buffer, java.lang.Class type, boolean lengthKnown) throws SerializationException
Serializer
readObjectData
in class Serializer
connectionHandler
- the connection handlerbuffer
- the buffertype
- the typelengthKnown
- the length known
SerializationException
- the serialization exceptionpublic void writeObjectData(ConnectionHandler connectionHandler, java.nio.ByteBuffer buffer, java.lang.Object object, boolean lengthKnown) throws SerializationException
Serializer
writeObjectData
in class Serializer
connectionHandler
- the connection handlerbuffer
- the bufferobject
- the objectlengthKnown
- the length known
SerializationException
- the serialization exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |