|
||||||||||
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.MapArrayEncoder
public class MapArrayEncoder
Implementation of IEncoder.IArrayEncoder for writing Map instance as Array.
IEncoder
,
IEncoder.IArrayEncoder
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 | |
---|---|
MapArrayEncoder()
|
Method Summary | |
---|---|
void |
encode(AmfEncoder encoder,
Map<String,Object> object)
Encode to Action Message Format(AMF). |
int |
getArraySize(Map<String,Object> object)
Get the size of array. |
Iterator<Object> |
getIterator(Map<String,Object> object)
Get the iterator of specified array. |
Map<String,Object> |
getProperties(Map<String,Object> object)
Get the properties of specified array. |
Object |
getValue(Map<String,Object> object,
int index)
Get the value of specified index. |
boolean |
isRandomAccess(Map<String,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 MapArrayEncoder()
Method Detail |
---|
public void encode(AmfEncoder encoder, Map<String,Object> object) throws IOException
encode
in interface IEncoder<Map<String,Object>>
encoder
- AMF encoder.object
- Object to be encoded.
IOException
- I/O Exception.public int getArraySize(Map<String,Object> object)
getArraySize
in interface IEncoder.IArrayEncoder<Map<String,Object>>
object
- Array to be encoded.
public boolean isRandomAccess(Map<String,Object> object)
isRandomAccess
in interface IEncoder.IArrayEncoder<Map<String,Object>>
public Iterator<Object> getIterator(Map<String,Object> object)
getIterator
in interface IEncoder.IArrayEncoder<Map<String,Object>>
object
- Array to be encoded.
public Object getValue(Map<String,Object> object, int index)
getValue
in interface IEncoder.IArrayEncoder<Map<String,Object>>
object
- Array to be encoded.index
- Target index.
public Map<String,Object> getProperties(Map<String,Object> object)
getProperties
in interface IEncoder.IArrayEncoder<Map<String,Object>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |