public class Vector3Serializer extends Serializer
log
Constructor and Description |
---|
Vector3Serializer() |
Modifier and Type | Method and Description |
---|---|
Vector3f |
readObject(java.nio.ByteBuffer data,
java.lang.Class c)
Read an object from the buffer, effectively deserializing it.
|
void |
writeObject(java.nio.ByteBuffer buffer,
java.lang.Object object)
Write an object to the buffer, effectively serializing it.
|
getExactSerializer, getExactSerializerRegistration, getSerializer, getSerializer, getSerializerRegistration, getSerializerRegistration, getSerializerRegistrations, initialize, initialize, isReadOnly, readClass, readClassAndObject, registerClass, registerClass, registerClass, registerClasses, registerClassForId, registerPackage, setReadOnly, setStrictRegistration, writeClass, writeClassAndObject
public Vector3f readObject(java.nio.ByteBuffer data, java.lang.Class c) throws java.io.IOException
Serializer
readObject
in class Serializer
data
- The buffer to read from.c
- The class of the object.java.io.IOException
- If deserializing fails.public void writeObject(java.nio.ByteBuffer buffer, java.lang.Object object) throws java.io.IOException
Serializer
writeObject
in class Serializer
buffer
- The buffer to write to.object
- The object to serialize.java.io.IOException
- If serializing fails.