jp.develop.common.util.amf.decoder
Class ArrayWriter

java.lang.Object
  extended by jp.develop.common.util.amf.decoder.ArrayWriter
All Implemented Interfaces:
IArrayWriter

public class ArrayWriter
extends Object
implements IArrayWriter

Implementation of IArrayWriter.

Author:
Waki Takeya
See Also:
AmfDecoder

Nested Class Summary
 
Nested classes/interfaces inherited from interface jp.develop.common.util.amf.decoder.IArrayWriter
IArrayWriter.IArrayProxy
 
Constructor Summary
ArrayWriter()
          Constructs a instance with default configuration option.
ArrayWriter(ArrayWriterOption option)
          Constructs a instance with specified configuration option.
 
Method Summary
 IArrayWriter.IArrayProxy getArrayProxy(Type type, int size)
          Get Writer for building up array.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayWriter

public ArrayWriter()
Constructs a instance with default configuration option.


ArrayWriter

public ArrayWriter(ArrayWriterOption option)
Constructs a instance with specified configuration option.

Parameters:
option - Configuration option.
Method Detail

getArrayProxy

public IArrayWriter.IArrayProxy getArrayProxy(Type type,
                                              int size)
Get Writer for building up array.

Specified by:
getArrayProxy in interface IArrayWriter
Parameters:
type - Type of assigning to.
size - Size of array. Can be -1, if size is not fixed.
Returns:
Array writer.