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

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
All Implemented Interfaces:
Closeable, DataInput, ObjectInput
Direct Known Subclasses:
Amf0InputStream, Amf3InputStream

public abstract class AmfInputStream
extends DataInputStream
implements ObjectInput


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
AmfInputStream(InputStream in)
           
 
Method Summary
protected  byte[] getBuffer(int len)
           
protected  Object readNull()
           
abstract  Object readObject()
          InputStream으로부터 객체를 생성하여 반환한다.
protected  int readS16()
           
protected  int readU16()
           
protected  int readU29()
          (hex) : b1 b2 b3 b4 0x00000000 - 0x0000007F : 0xxxxxxx 0x00000080 - 0x00003FFF : 1xxxxxxx 0xxxxxxx 0x00004000 - 0x001FFFFF : 1xxxxxxx 1xxxxxxx 0xxxxxxx 0x00200000 - 0x3FFFFFFF : 1xxxxxxx 1xxxxxxx 1xxxxxxx xxxxxxxx 0x40000000 - 0xFFFFFFFF : throw range exception
protected  int readU32()
           
protected  int 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, reset, 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
 

Constructor Detail

AmfInputStream

public AmfInputStream(InputStream in)
Method Detail

readObject

public abstract Object readObject()
                           throws IOException,
                                  ClassNotFoundException
InputStream으로부터 객체를 생성하여 반환한다.

Specified by:
readObject in interface ObjectInput
Returns:
Throws:
IOException
ClassNotFoundException

getBuffer

protected byte[] getBuffer(int len)

readU8

protected int readU8()
              throws IOException
Throws:
IOException

readS16

protected int readS16()
               throws IOException
Throws:
IOException

readU16

protected int readU16()
               throws IOException
Throws:
IOException

readU32

protected int readU32()
               throws IOException
Throws:
IOException

readU29

protected int readU29()
               throws IOException
(hex) : b1 b2 b3 b4 0x00000000 - 0x0000007F : 0xxxxxxx 0x00000080 - 0x00003FFF : 1xxxxxxx 0xxxxxxx 0x00004000 - 0x001FFFFF : 1xxxxxxx 1xxxxxxx 0xxxxxxx 0x00200000 - 0x3FFFFFFF : 1xxxxxxx 1xxxxxxx 1xxxxxxx xxxxxxxx 0x40000000 - 0xFFFFFFFF : throw range exception

Returns:
Amf U29 integer
Throws:
IOException

readNull

protected Object readNull()


Copyright © 2014. All Rights Reserved.