|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jp.develop.common.util.amf.encoder.ArrayEncoder
public class ArrayEncoder
Implementation of IEncoder.IArrayEncoder for Array.
IEncoder
,
IEncoder.IArrayEncoder
,
CollectionEncoder
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 | |
---|---|
ArrayEncoder()
|
Method Summary | |
---|---|
void |
encode(AmfEncoder encoder,
Object object)
Encode to Action Message Format(AMF). |
int |
getArraySize(Object object)
Get the size of array. |
Iterator<Object> |
getIterator(Object object)
Get the iterator of specified array. |
Map<String,Object> |
getProperties(Object object)
Get the properties of specified array. |
Object |
getValue(Object object,
int index)
Get the value of specified index. |
boolean |
isRandomAccess(Object object)
Is this random access array? |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayEncoder()
Method Detail |
---|
public void encode(AmfEncoder encoder, Object object) throws IOException
encode
in interface IEncoder<Object>
encoder
- AMF encoder.object
- Object to be encoded.
IOException
- I/O Exception.public int getArraySize(Object object)
getArraySize
in interface IEncoder.IArrayEncoder<Object>
object
- Array to be encoded.
public boolean isRandomAccess(Object object)
isRandomAccess
in interface IEncoder.IArrayEncoder<Object>
public Iterator<Object> getIterator(Object object)
getIterator
in interface IEncoder.IArrayEncoder<Object>
object
- Array to be encoded.
public Object getValue(Object object, int index)
getValue
in interface IEncoder.IArrayEncoder<Object>
object
- Array to be encoded.index
- Target index.
public Map<String,Object> getProperties(Object object)
getProperties
in interface IEncoder.IArrayEncoder<Object>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |