|
||||||||||
| 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.SimpleSerializer<T>
T - the generic typepublic abstract class SimpleSerializer<T>
The Class SimpleSerializer.
| Constructor Summary | |
|---|---|
SimpleSerializer()
|
|
| Method Summary | ||
|---|---|---|
abstract T |
read(java.nio.ByteBuffer buffer)
Read. |
|
|
readObjectData(ConnectionHandler connectionHandler,
java.nio.ByteBuffer buffer,
java.lang.Class<E> type,
boolean lengthKnown)
Read object data. |
|
abstract void |
write(java.nio.ByteBuffer buffer,
T object)
Write. |
|
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 SimpleSerializer()
| Method Detail |
|---|
public abstract T read(java.nio.ByteBuffer buffer)
throws SerializationException
buffer - the buffer
SerializationException - the serialization exception
public <E> E readObjectData(ConnectionHandler connectionHandler,
java.nio.ByteBuffer buffer,
java.lang.Class<E> type,
boolean lengthKnown)
throws SerializationException
Serializer
readObjectData in class SerializerE - the generic typeconnectionHandler - the connection handlerbuffer - the buffertype - the typelengthKnown - the length known
SerializationException - the serialization exception
public abstract void write(java.nio.ByteBuffer buffer,
T object)
throws SerializationException
buffer - the bufferobject - the object
SerializationException - the serialization exception
public void writeObjectData(ConnectionHandler connectionHandler,
java.nio.ByteBuffer buffer,
java.lang.Object object,
boolean lengthKnown)
throws SerializationException
Serializer
writeObjectData in class SerializerconnectionHandler - 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 | |||||||||