|
||||||||||
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.IntSerializer
public class IntSerializer
The Class IntSerializer.
Constructor Summary | |
---|---|
IntSerializer()
Instantiates a new int serializer. |
|
IntSerializer(java.lang.Boolean optimizePositive)
Instantiates a new int serializer. |
Method Summary | |
---|---|
static boolean |
canRead(java.nio.ByteBuffer buffer,
boolean optimizePositive)
Can read. |
static int |
get(java.nio.ByteBuffer buffer,
boolean optimizePositive)
Gets the. |
static int |
put(java.nio.ByteBuffer buffer,
int value,
boolean optimizePositive)
Put. |
java.lang.Integer |
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 IntSerializer()
public IntSerializer(java.lang.Boolean optimizePositive)
optimizePositive
- the optimize positiveMethod Detail |
---|
public static boolean canRead(java.nio.ByteBuffer buffer, boolean optimizePositive)
buffer
- the bufferoptimizePositive
- the optimize positive
public static int get(java.nio.ByteBuffer buffer, boolean optimizePositive)
buffer
- the bufferoptimizePositive
- the optimize positive
public static int put(java.nio.ByteBuffer buffer, int value, boolean optimizePositive)
buffer
- the buffervalue
- the valueoptimizePositive
- the optimize positive
public java.lang.Integer 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 |