|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
kr.co.hit.live.web.flex.io.amf.AmfInputStream
kr.co.hit.live.web.flex.io.amf.Amf3InputStream
public class Amf3InputStream
AMF3 방식으로 입력되는 InputStream으로부터 객체들을 생성한다.
| Field Summary | |
|---|---|
protected List<Object> |
objectRefTable
|
protected List<String> |
stringRefTable
|
protected List<ObjectTraits> |
traitsRefTable
|
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
Amf3InputStream(InputStream in)
|
|
| Method Summary | |
|---|---|
protected Object |
convertScriptObject(Object flexObj)
Flex에서 전송된 몇몇 객체들은 Flex 고유의 자료 구조를 가지고 있으므로 이를 Java 객체 형태로 변환한다. |
protected Object |
getStoredObject(int ref)
U29 값이 Object reference인 경우에는 objectRefTable에서 찾아 해당 object를 반환하고, 아닌 경우에는 null을 반환한다. |
protected String |
getStoredString(int ref)
U29 값이 String reference인 경우에는 stringRefTable에서 찾아 해당 String을 반환하고, 아닌 경우에는 null을 반환한다. |
protected Object |
readArray()
Array format을 Map(ECMA Array인 경우) 또는 Object[](일반 Array인 경우) 객체로 반환한다. |
protected Object |
readASObject()
Read ActionScript Object |
protected byte[] |
readByteArray()
|
protected Date |
readDate()
|
protected void |
readExternalizable(String className,
Object object)
|
Object |
readObject()
InputStream으로부터 객체를 생성하여 반환한다. |
protected ObjectTraits |
readObjectTraits(int ref)
object-type = U29 = 000XXXXX XXXXXXXX XXXXXXXX XXXX???? |
protected String |
readString()
|
void |
reset()
|
| Methods inherited from class kr.co.hit.live.web.flex.io.amf.AmfInputStream |
|---|
getBuffer, readNull, readS16, readU16, readU29, readU32, readU8 |
| Methods inherited from class java.io.DataInputStream |
|---|
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes |
| Methods inherited from class java.io.FilterInputStream |
|---|
available, close, mark, markSupported, read, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.io.ObjectInput |
|---|
available, close, read, read, read, skip |
| Methods inherited from interface java.io.DataInput |
|---|
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes |
| Field Detail |
|---|
protected List<String> stringRefTable
protected List<Object> objectRefTable
protected List<ObjectTraits> traitsRefTable
| Constructor Detail |
|---|
public Amf3InputStream(InputStream in)
| Method Detail |
|---|
public void reset()
reset in class FilterInputStream
public Object readObject()
throws IOException,
ClassNotFoundException
AmfInputStream
readObject in interface ObjectInputreadObject in class AmfInputStreamIOException
ClassNotFoundException
protected Object readASObject()
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundException
protected ObjectTraits readObjectTraits(int ref)
throws IOException
IOExceptionprotected Object convertScriptObject(Object flexObj)
flexObj -
protected void readExternalizable(String className,
Object object)
throws ClassNotFoundException,
IOException
ClassNotFoundException
IOException
protected Object readArray()
throws IOException,
ClassNotFoundException
ClassNotFoundException
IOException
protected String readString()
throws IOException
IOException
protected byte[] readByteArray()
throws IOException
IOException
protected Date readDate()
throws IOException
IOExceptionprotected String getStoredString(int ref)
ref -
protected Object getStoredObject(int ref)
ref -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||