kr.co.hit.live.web.flex.io.amf
Class Amf0InputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.DataInputStream
              extended by kr.co.hit.live.web.flex.io.amf.AmfInputStream
                  extended by kr.co.hit.live.web.flex.io.amf.Amf0InputStream
All Implemented Interfaces:
Closeable, DataInput, ObjectInput

public class Amf0InputStream
extends AmfInputStream

AMF0와 AMF3 방식으로 입력되는 InputStream으로부터 객체들을 생성한다.

Author:
김형도

Field Summary
protected  Amf3InputStream amf3In
           
protected  List<Object> objectRefTable
          한번 생성된 Object들을 담아 놓기 위한 리스트 구조
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
Amf0InputStream(InputStream in)
           
 
Method Summary
protected  Object readArray()
           
protected  Date readDate()
           
 Object readObject()
          InputStream으로부터 객체를 생성하여 반환한다.
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

objectRefTable

protected List<Object> objectRefTable
한번 생성된 Object들을 담아 놓기 위한 리스트 구조


amf3In

protected Amf3InputStream amf3In
Constructor Detail

Amf0InputStream

public Amf0InputStream(InputStream in)
Method Detail

reset

public void reset()
Overrides:
reset in class FilterInputStream

readObject

public Object readObject()
                  throws IOException,
                         ClassNotFoundException
Description copied from class: AmfInputStream
InputStream으로부터 객체를 생성하여 반환한다.

Specified by:
readObject in interface ObjectInput
Specified by:
readObject in class AmfInputStream
Throws:
IOException
ClassNotFoundException

readDate

protected Date readDate()
                 throws IOException
Throws:
IOException

readString

protected String readString()
                     throws IOException
Throws:
IOException

readArray

protected Object readArray()
                    throws IOException,
                           ClassNotFoundException
Throws:
IOException
ClassNotFoundException


Copyright © 2014. All Rights Reserved.