|
||||||||||
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.EnumSerializer
public class EnumSerializer
The Class EnumSerializer.
Constructor Summary | |
---|---|
EnumSerializer()
|
Method Summary | ||
---|---|---|
static java.lang.Enum<?> |
get(java.nio.ByteBuffer buffer)
Gets the. |
|
static void |
put(java.nio.ByteBuffer buffer,
java.lang.Enum<?> value)
Put. |
|
|
readObjectData(ConnectionHandler connectionHandler,
java.nio.ByteBuffer buffer,
java.lang.Class<T> 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 EnumSerializer()
Method Detail |
---|
public static java.lang.Enum<?> get(java.nio.ByteBuffer buffer) throws SerializationException
buffer
- the buffer
SerializationException
- the serialization exceptionpublic static void put(java.nio.ByteBuffer buffer, java.lang.Enum<?> value) throws SerializationException
buffer
- the buffervalue
- the value
SerializationException
- the serialization exceptionpublic <T> T readObjectData(ConnectionHandler connectionHandler, java.nio.ByteBuffer buffer, java.lang.Class<T> type, boolean lengthKnown) throws SerializationException
Serializer
readObjectData
in class Serializer
T
- the generic typeconnectionHandler
- 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 |