Package com.jme3.network.message
Class DisconnectMessage.DisconnectSerializer
java.lang.Object
com.jme3.network.serializing.Serializer
com.jme3.network.message.DisconnectMessage.DisconnectSerializer
- Enclosing class:
- DisconnectMessage
A message-specific serializer to avoid compatibility issues
between versions. This serializer is registered to the specific
SERIALIZER_ID which is compatible with previous versions of the
SM serializer registrations... and now will be forever.
-
Field Summary
Fields inherited from class com.jme3.network.serializing.Serializer
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreadObject
(ByteBuffer data, Class c) Read an object from the buffer, effectively deserializing it.void
writeObject
(ByteBuffer buffer, Object object) Write an object to the buffer, effectively serializing it.Methods inherited from class com.jme3.network.serializing.Serializer
getExactSerializer, getExactSerializerRegistration, getSerializer, getSerializer, getSerializerRegistration, getSerializerRegistration, getSerializerRegistrations, initialize, initialize, isReadOnly, readClass, readClassAndObject, registerClass, registerClass, registerClass, registerClasses, registerClassForId, registerPackage, setReadOnly, setStrictRegistration, writeClass, writeClassAndObject
-
Constructor Details
-
DisconnectSerializer
public DisconnectSerializer()
-
-
Method Details
-
readObject
Description copied from class:Serializer
Read an object from the buffer, effectively deserializing it.- Specified by:
readObject
in classSerializer
- Parameters:
data
- The buffer to read from.c
- The class of the object.- Returns:
- The object read.
- Throws:
IOException
- If deserializing fails.
-
writeObject
Description copied from class:Serializer
Write an object to the buffer, effectively serializing it.- Specified by:
writeObject
in classSerializer
- Parameters:
buffer
- The buffer to write to.object
- The object to serialize.- Throws:
IOException
- If serializing fails.
-