|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
kr.co.hit.live.web.flex.io.amf.AmfOutputStream
kr.co.hit.live.web.flex.io.amf.Amf3OutputStream
public class Amf3OutputStream
AMF3 방식으로 객체를 OutputStream으로 직렬화한다.
| Field Summary | |
|---|---|
protected Map<Object,Integer> |
objectRefTable
한번 사용된 객체들을 담아둔다. |
protected Map<String,Integer> |
stringRefTable
한번 사용된 문자열을 그 인덱스와 함께 담아둔다. |
protected Map<ObjectTraits,Integer> |
traitsRefTable
한번 사용된 ObjectTraits 객체를 그 인덱스와 함께 담아둔다. |
| Fields inherited from class java.io.DataOutputStream |
|---|
written |
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Constructor Summary | |
|---|---|
Amf3OutputStream(OutputStream out)
|
|
| Method Summary | |
|---|---|
protected String |
getASName(Object obj)
return ActionScript object classname |
protected List<String> |
getPropertyNames(Object obj)
|
protected Object |
getValue(Object obj,
String name)
|
void |
reset()
|
protected void |
writeArray(Object[] obj)
|
protected void |
writeASObject(Object obj)
|
protected void |
writeBoolean(Boolean b)
|
protected void |
writeBooleanArray(boolean[] a)
|
protected void |
writeBooleanArray(Boolean[] a)
|
protected void |
writeByteArray(byte[] ba)
|
protected void |
writeByteArray(Byte[] ba)
|
protected void |
writeCharArray(char[] ca)
String 형태로 전송한다. |
protected void |
writeCharArray(Character[] ca)
String 형태로 전송한다. |
protected void |
writeCollection(Collection<?> c)
|
protected void |
writeDate(Date d)
|
protected void |
writeDouble(double d,
boolean mark)
|
protected void |
writeDoubleArray(double[] a)
|
protected void |
writeDoubleArray(Number[] a)
|
protected void |
writeFloatArray(float[] a)
|
protected void |
writeInt(int i,
boolean mark)
|
protected void |
writeIntArray(int[] a)
|
protected void |
writeIntArray(Number[] a)
|
protected void |
writeLongArray(long[] a)
|
protected void |
writeNumber(Number num)
|
void |
writeObject(Object obj)
|
protected void |
writeObjectArray(Object[] oa)
|
protected boolean |
writeObjectReference(Object obj)
객체가 이미 사용된 경우에는 객체의 reference를 전송하고 true를 반환한다. |
protected void |
writeShortArray(short[] a)
|
protected void |
writeString(String s,
boolean marker)
AMF3 Spec의 string-type으로 전송한다. |
protected boolean |
writeStringReference(String s)
해당 문자열의 reference를 전송하고 true를 반환한다. |
protected boolean |
writeTraitsReference(ObjectTraits traits)
객체의 Traits 정보에 대한 reference를 전송하고 true를 반환한다. |
protected void |
writeUTF8(String s)
AMF3 Spec의 U29S-value *(UTF8-char) 타입 또는 U29X-value *(UTF8-char) 타입으로 전송한다. |
protected void |
writeXML(Document doc)
|
| Methods inherited from class kr.co.hit.live.web.flex.io.amf.AmfOutputStream |
|---|
encodeUTF, getBuffer, writeS16, writeU16, writeU29, writeU32 |
| Methods inherited from class java.io.DataOutputStream |
|---|
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
| Methods inherited from class java.io.FilterOutputStream |
|---|
close, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.io.ObjectOutput |
|---|
close, flush, write, write, write |
| Methods inherited from interface java.io.DataOutput |
|---|
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
| Field Detail |
|---|
protected Map<String,Integer> stringRefTable
protected Map<Object,Integer> objectRefTable
protected Map<ObjectTraits,Integer> traitsRefTable
| Constructor Detail |
|---|
public Amf3OutputStream(OutputStream out)
| Method Detail |
|---|
public void reset()
reset in class AmfOutputStream
public void writeObject(Object obj)
throws IOException
writeObject in interface ObjectOutputwriteObject in class AmfOutputStreamIOException
protected void writeXML(Document doc)
throws IOException
IOException
protected void writeNumber(Number num)
throws IOException
IOException
protected void writeArray(Object[] obj)
throws IOException
IOException
protected void writeIntArray(int[] a)
throws IOException
IOException
protected void writeIntArray(Number[] a)
throws IOException
IOException
protected void writeShortArray(short[] a)
throws IOException
IOException
protected void writeLongArray(long[] a)
throws IOException
IOException
protected void writeFloatArray(float[] a)
throws IOException
IOException
protected void writeDoubleArray(double[] a)
throws IOException
IOException
protected void writeDoubleArray(Number[] a)
throws IOException
IOException
protected void writeBooleanArray(boolean[] a)
throws IOException
IOException
protected void writeBooleanArray(Boolean[] a)
throws IOException
IOException
protected void writeByteArray(byte[] ba)
throws IOException
IOException
protected void writeByteArray(Byte[] ba)
throws IOException
IOException
protected void writeCharArray(char[] ca)
throws IOException
ca -
IOException
protected void writeCharArray(Character[] ca)
throws IOException
ca -
IOException
protected void writeObjectArray(Object[] oa)
throws IOException
IOException
protected void writeCollection(Collection<?> c)
throws IOException
IOException
protected void writeString(String s,
boolean marker)
throws IOException
s -
IOException
protected void writeUTF8(String s)
throws IOException
s -
IOException
protected void writeBoolean(Boolean b)
throws IOException
IOException
protected void writeDate(Date d)
throws IOException
IOException
protected void writeDouble(double d,
boolean mark)
throws IOException
IOException
protected void writeInt(int i,
boolean mark)
throws IOException
IOException
protected void writeASObject(Object obj)
throws IOException
IOException
protected boolean writeStringReference(String s)
throws IOException
s -
IOException
protected boolean writeTraitsReference(ObjectTraits traits)
throws IOException
traits -
IOException
protected boolean writeObjectReference(Object obj)
throws IOException
obj -
IOExceptionprotected List<String> getPropertyNames(Object obj)
protected String getASName(Object obj)
obj -
protected Object getValue(Object obj,
String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||