Class ByteBufferSerializer
java.lang.Object
com.jme3.network.serializing.Serializer
org.ngengine.network.protocol.serializers.DynamicSerializer
org.ngengine.network.protocol.serializers.ByteBufferSerializer
-
Field Summary
Fields inherited from class com.jme3.network.serializing.Serializer
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
readObject
(ByteBuffer buffer, Class<T> c) Read an object from the buffer, effectively deserializing it.void
writeObject
(GrowableByteBuffer buffer, Object object) Methods inherited from class org.ngengine.network.protocol.serializers.DynamicSerializer
writeObject
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
-
ByteBufferSerializer
public ByteBufferSerializer()
-
-
Method Details
-
readObject
Description copied from class:Serializer
Read an object from the buffer, effectively deserializing it.- Specified by:
readObject
in classSerializer
- Parameters:
buffer
- The buffer to read from.c
- The class of the object.- Returns:
- The object read.
- Throws:
IOException
- If deserializing fails.
-
writeObject
- Specified by:
writeObject
in classDynamicSerializer
- Throws:
IOException
-