com.jme3.network.serializing.serializers
クラス FieldSerializer

java.lang.Object
  上位を拡張 com.jme3.network.serializing.Serializer
      上位を拡張 com.jme3.network.serializing.serializers.FieldSerializer

public class FieldSerializer
extends Serializer

The field serializer is the default serializer used for custom class.


コンストラクタの概要
FieldSerializer()
           
 
メソッドの概要
 void initialize(java.lang.Class clazz)
          Registration for when a serializer may need to cache something.
<T> T
readObject(java.nio.ByteBuffer data, java.lang.Class<T> 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.
 
クラス com.jme3.network.serializing.Serializer から継承されたメソッド
getExactSerializer, getExactSerializerRegistration, getSerializer, getSerializer, getSerializerRegistration, getSerializerRegistration, readClass, readClassAndObject, registerClass, registerClass, registerClass, registerPackage, setStrictRegistration, writeClass, writeClassAndObject
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

FieldSerializer

public FieldSerializer()
メソッドの詳細

initialize

public void initialize(java.lang.Class clazz)
クラス Serializer の記述:
Registration for when a serializer may need to cache something. Override to use.

オーバーライド:
クラス Serializer 内の initialize
パラメータ:
clazz - The class that has been registered to the serializer.

readObject

public <T> T readObject(java.nio.ByteBuffer data,
                        java.lang.Class<T> c)
             throws java.io.IOException
クラス Serializer の記述:
Read an object from the buffer, effectively deserializing it.

定義:
クラス Serializer 内の readObject
パラメータ:
data - The buffer to read from.
c - The class of the object.
戻り値:
The object read.
例外:
java.io.IOException - If deserializing fails.

writeObject

public void writeObject(java.nio.ByteBuffer buffer,
                        java.lang.Object object)
                 throws java.io.IOException
クラス Serializer の記述:
Write an object to the buffer, effectively serializing it.

定義:
クラス Serializer 内の writeObject
パラメータ:
buffer - The buffer to write to.
object - The object to serialize.
例外:
java.io.IOException - If serializing fails.