|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjp.develop.common.util.amf.AmfDecoder
public class AmfDecoder
Main class of AMF decoder. This class implements ObjectInput for the decode of externalizable object.
AmfUtil| Constructor Summary | |
|---|---|
AmfDecoder(InputStream in)
Constructs a instance with specified input stream. |
|
AmfDecoder(InputStream in,
AmfDecoderOption option)
Constructs a instance with specified input stream and configuration option. |
|
| Method Summary | ||
|---|---|---|
int |
available()
|
|
void |
close()
|
|
int |
read()
|
|
int |
read(byte[] b)
|
|
int |
read(byte[] b,
int off,
int len)
|
|
Object |
readAmfArray(Type type)
Read array by AMF manner. |
|
Object |
readAmfArray(Type type,
IWrapper resultContainer)
Read array by AMF manner. |
|
byte[] |
readAmfByteArray()
Read byte array by AMF manner. |
|
Date |
readAmfDate()
Read date by AMF manner. |
|
Object |
readAmfDictionary(Type type)
Read dictionary by AMF manner. |
|
int |
readAmfInteger()
Read integer by AMF manner. |
|
Object |
readAmfObject(Type type)
Read object by AMF manner. |
|
String |
readAmfString()
Read string by AMF manner. |
|
Object |
readAmfVectorInt(Type type)
Read vector of int by AMF manner. |
|
Object |
readAmfVectorNumber(Type type)
Read vector of number by AMF manner. |
|
Object |
readAmfVectorObject(Type type)
Read vector of object by AMF manner. |
|
Object |
readAmfVectorUint(Type type)
Read vector of uint by AMF manner. |
|
String |
readAmfXMLString()
Read XML document by AMF manner. |
|
boolean |
readBoolean()
|
|
byte |
readByte()
|
|
char |
readChar()
|
|
double |
readDouble()
|
|
float |
readFloat()
|
|
void |
readFully(byte[] b)
|
|
void |
readFully(byte[] b,
int off,
int len)
|
|
int |
readInt()
|
|
String |
readLine()
This method is not supported. |
|
long |
readLong()
|
|
Object |
readObject()
|
|
|
readObject(Type type)
Read object as specified type. |
|
short |
readShort()
|
|
String |
readString(int bytes)
Read string(UTF-8) by AMF manner. |
|
int |
readU29()
Read unsigned integer(29bit) by AMF manner. |
|
int |
readUnsignedByte()
|
|
long |
readUnsignedInt()
Read unsigned int. |
|
int |
readUnsignedShort()
|
|
String |
readUTF()
|
|
long |
skip(long n)
|
|
int |
skipBytes(int n)
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AmfDecoder(InputStream in)
in - Input stream.
public AmfDecoder(InputStream in,
AmfDecoderOption option)
in - Input stream.option - Configuration option.| Method Detail |
|---|
public <T> T readObject(Type type)
throws IOException
T - The type of result.type - Target type.
IOException - I/O Exception.
public Object readAmfObject(Type type)
throws IOException
type - Target type.
IOException - I/O Exception.
public Object readAmfArray(Type type)
throws IOException
type - Target type.
IOException - I/O Exception.
public Object readAmfArray(Type type,
IWrapper resultContainer)
throws IOException
type - Target type.resultContainer - The container for result object.
IOException - I/O Exception.
public int readAmfInteger()
throws IOException
IOException - I/O Exception.
public String readAmfString()
throws IOException
IOException - I/O Exception.
public String readAmfXMLString()
throws IOException
IOException - I/O Exception.
public Date readAmfDate()
throws IOException
IOException - I/O Exception.
public byte[] readAmfByteArray()
throws IOException
IOException - I/O Exception.
public Object readAmfVectorInt(Type type)
throws IOException
type - Target type.
IOException - I/O Exception.
public Object readAmfVectorUint(Type type)
throws IOException
type - Target type.
IOException - I/O Exception.
public Object readAmfVectorNumber(Type type)
throws IOException
type - Target type.
IOException - I/O Exception.
public Object readAmfVectorObject(Type type)
throws IOException
type - Target type.
IOException - I/O Exception.
public Object readAmfDictionary(Type type)
throws IOException
type - Target type.
IOException - I/O Exception.
public int readU29()
throws IOException
IOException - I/O Exception.
public String readString(int bytes)
throws IOException
bytes - Byte length.
IOException - I/O Exception.
public void readFully(byte[] b)
throws IOException
readFully in interface DataInputIOException
public void readFully(byte[] b,
int off,
int len)
throws IOException
readFully in interface DataInputIOException
public int skipBytes(int n)
throws IOException
skipBytes in interface DataInputIOException
public boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOException
public byte readByte()
throws IOException
readByte in interface DataInputIOException
public int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputIOException
public short readShort()
throws IOException
readShort in interface DataInputIOException
public int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputIOException
public char readChar()
throws IOException
readChar in interface DataInputIOException
public int readInt()
throws IOException
readInt in interface DataInputIOException
public long readUnsignedInt()
throws IOException
IOException - I/O Exception.
public long readLong()
throws IOException
readLong in interface DataInputIOException
public float readFloat()
throws IOException
readFloat in interface DataInputIOException
public double readDouble()
throws IOException
readDouble in interface DataInputIOException
public String readLine()
throws IOException
readLine in interface DataInputIOException
public String readUTF()
throws IOException
readUTF in interface DataInputIOException
public Object readObject()
throws IOException
readObject in interface ObjectInputIOException
public int read()
throws IOException
read in interface ObjectInputIOException
public int read(byte[] b)
throws IOException
read in interface ObjectInputIOException
public int read(byte[] b,
int off,
int len)
throws IOException
read in interface ObjectInputIOException
public long skip(long n)
throws IOException
skip in interface ObjectInputIOException
public int available()
throws IOException
available in interface ObjectInputIOException
public void close()
throws IOException
close in interface ObjectInputIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||