jp.develop.common.util.amf.encoder
Class EnumStringEncoder

java.lang.Object
  extended by jp.develop.common.util.amf.encoder.EnumStringEncoder
All Implemented Interfaces:
IEncoder<Enum<?>>

public class EnumStringEncoder
extends Object
implements IEncoder<Enum<?>>

Implementation of IEncoder.IObjectEncoder for encoding Enum as String.

Author:
Waki Takeya
See Also:
IEncoder

Nested Class Summary
 
Nested classes/interfaces inherited from interface jp.develop.common.util.amf.encoder.IEncoder
IEncoder.IArrayEncoder<T>, IEncoder.IDictionaryEncoder<T>, IEncoder.IObjectEncoder<T>
 
Constructor Summary
EnumStringEncoder()
           
 
Method Summary
 void encode(AmfEncoder encoder, Enum<?> value)
          Encode to Action Message Format(AMF).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumStringEncoder

public EnumStringEncoder()
Method Detail

encode

public void encode(AmfEncoder encoder,
                   Enum<?> value)
            throws IOException
Encode to Action Message Format(AMF).

Specified by:
encode in interface IEncoder<Enum<?>>
Parameters:
encoder - AMF encoder.
value - Object to be encoded.
Throws:
IOException - I/O Exception.