synergynetframework.appsystem.services.net.objectmessaging.utility.serializers
Class CustomSerializer
java.lang.Object
synergynetframework.appsystem.services.net.objectmessaging.utility.serializers.Serializer
synergynetframework.appsystem.services.net.objectmessaging.utility.serializers.CustomSerializer
public class CustomSerializer
- extends Serializer
The Class CustomSerializer.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomSerializer
public CustomSerializer()
readObjectData
public <T> T readObjectData(ConnectionHandler connectionHandler,
java.nio.ByteBuffer buffer,
java.lang.Class<T> type,
boolean lengthKnown)
throws SerializationException
- Description copied from class:
Serializer
- Read object data.
- Specified by:
readObjectData in class Serializer
- Type Parameters:
T - the generic type- Parameters:
connectionHandler - the connection handlerbuffer - the buffertype - the typelengthKnown - the length known
- Returns:
- the t
- Throws:
SerializationException - the serialization exception
writeObjectData
public void writeObjectData(ConnectionHandler connectionHandler,
java.nio.ByteBuffer buffer,
java.lang.Object object,
boolean lengthKnown)
throws SerializationException
- Description copied from class:
Serializer
- Write object data.
- Specified by:
writeObjectData in class Serializer
- Parameters:
connectionHandler - the connection handlerbuffer - the bufferobject - the objectlengthKnown - the length known
- Throws:
SerializationException - the serialization exception