jp.develop.common.util.amf.encoder
Interface IEncoder.IObjectEncoder<T>

All Known Implementing Classes:
ArrayCollectionEncoder, BeanEncoder, EnumObjectEncoder, ExternalizableEncoder, MapDynamicEncoder, MapSealedEncoder
Enclosing interface:
IEncoder<T>

public static interface IEncoder.IObjectEncoder<T>

AMF encoder interface for object.


Method Summary
 void encodeProperties(AmfEncoder encoder, TraitsInfo traits, T object, PathStack path)
          Encode properties by same order of traits's properties.
 TraitsInfo getTraitsInfo(T object)
          Get object's traits information.
 

Method Detail

getTraitsInfo

TraitsInfo getTraitsInfo(T object)
Get object's traits information.

Parameters:
object - Target object.
Returns:
Traits information.

encodeProperties

void encodeProperties(AmfEncoder encoder,
                      TraitsInfo traits,
                      T object,
                      PathStack path)
                      throws IOException
Encode properties by same order of traits's properties. As for externalizable, it is just depended

Parameters:
encoder - AMF encoder.
traits - Traits information.
object - Object to be encoded.
Throws:
IOException - I/O Exception.