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