|
||||||||||
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.SerializableSerializer
public class SerializableSerializer
The Class SerializableSerializer.
Constructor Summary | |
---|---|
SerializableSerializer()
|
Method Summary | ||
---|---|---|
static
|
get(java.nio.ByteBuffer buffer,
java.lang.Class<T> type)
Gets the. |
|
static void |
put(java.nio.ByteBuffer buffer,
java.lang.Object object)
Put. |
|
java.lang.Object |
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 SerializableSerializer()
Method Detail |
---|
public static <T> T get(java.nio.ByteBuffer buffer, java.lang.Class<T> type) throws SerializationException
T
- the generic typebuffer
- the buffertype
- the type
SerializationException
- the serialization exceptionpublic static void put(java.nio.ByteBuffer buffer, java.lang.Object object) throws SerializationException
buffer
- the bufferobject
- the object
SerializationException
- the serialization exceptionpublic java.lang.Object 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 |