jp.develop.common.util.amf.encoder
Class MapSealedEncoder
java.lang.Object
jp.develop.common.util.amf.encoder.MapSealedEncoder
- All Implemented Interfaces:
- IEncoder<Map<String,Object>>, IEncoder.IObjectEncoder<Map<String,Object>>
public class MapSealedEncoder
- extends Object
- implements IEncoder<Map<String,Object>>, IEncoder.IObjectEncoder<Map<String,Object>>
Implementation of IEncoder for writing Map instance as sealed object.
This implementation is compatible with BlazeDS.
- Author:
- Waki Takeya
- See Also:
MapDynamicEncoder
,
DictionaryEncoder
MapSealedEncoder
public MapSealedEncoder()
encode
public void encode(AmfEncoder encoder,
Map<String,Object> map)
throws IOException
- Encode to Action Message Format(AMF).
- Specified by:
encode
in interface IEncoder<Map<String,Object>>
- Parameters:
encoder
- AMF encoder.map
- Object to be encoded.
- Throws:
IOException
- I/O Exception.
getTraitsInfo
public TraitsInfo getTraitsInfo(Map<String,Object> map)
- Get object's traits information.
- Specified by:
getTraitsInfo
in interface IEncoder.IObjectEncoder<Map<String,Object>>
- Parameters:
map
- Target object.
- Returns:
- Traits information.
encodeProperties
public void encodeProperties(AmfEncoder encoder,
TraitsInfo traits,
Map<String,Object> map,
PathStack path)
throws IOException
- Encode properties by same order of traits's properties.
As for externalizable, it is just depended
- Specified by:
encodeProperties
in interface IEncoder.IObjectEncoder<Map<String,Object>>
- Parameters:
encoder
- AMF encoder.traits
- Traits information.map
- Object to be encoded.
- Throws:
IOException
- I/O Exception.