public class AMF3Deserializer extends java.lang.Object implements java.io.ObjectInput, AMF3Constants
| Modifier and Type | Field and Description |
|---|---|
protected AliasRegistry |
aliasRegistry |
protected java.util.Map<java.lang.String,org.w3c.dom.Document> |
documentCache |
protected ExternalizersConfig |
externalizersConfig |
protected AMF3DeserializerSecurizer |
securizer |
protected java.util.List<ActionScriptClassDescriptor> |
storedClassDescriptors |
protected java.util.List<java.lang.Object> |
storedObjects |
protected java.util.List<java.lang.String> |
storedStrings |
protected XMLUtil |
xmlUtil |
AMF3_ARRAY, AMF3_BOOLEAN_FALSE, AMF3_BOOLEAN_TRUE, AMF3_BYTEARRAY, AMF3_DATE, AMF3_DICTIONARY, AMF3_INTEGER, AMF3_INTEGER_MAX, AMF3_INTEGER_MIN, AMF3_NULL, AMF3_NUMBER, AMF3_OBJECT, AMF3_SIGNED_INTEGER_MASK, AMF3_STRING, AMF3_UNDEFINED, AMF3_VECTOR_INT, AMF3_VECTOR_NUMBER, AMF3_VECTOR_OBJECT, AMF3_VECTOR_UINT, AMF3_XML, AMF3_XMLSTRING, UTF8| Constructor and Description |
|---|
AMF3Deserializer(java.io.InputStream in) |
AMF3Deserializer(java.io.InputStream in,
int capacity) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToStoredClassDescriptors(ActionScriptClassDescriptor desc) |
int |
available() |
void |
close() |
protected ActionScriptClassDescriptor |
getFromStoredClassDescriptors(int index) |
protected java.lang.Object |
newInstance(ActionScriptClassDescriptor desc) |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
protected ActionScriptClassDescriptor |
readActionScriptClassDescriptor(int flags) |
protected java.lang.Object |
readAMF3Array() |
protected byte[] |
readAMF3ByteArray() |
protected java.util.Date |
readAMF3Date() |
protected java.util.Map<java.lang.Object,java.lang.Object> |
readAMF3Dictionary() |
protected java.lang.Double |
readAMF3Double() |
protected int |
readAMF3Integer() |
protected java.lang.Object |
readAMF3Object() |
protected java.lang.String |
readAMF3String() |
protected int |
readAMF3UnsignedInteger() |
protected int[] |
readAMF3VectorInt() |
protected double[] |
readAMF3VectorNumber() |
protected java.util.List<java.lang.Object> |
readAMF3VectorObject() |
protected long[] |
readAMF3VectorUint() |
protected org.w3c.dom.Document |
readAMF3Xml() |
protected java.lang.String |
readAMF3XmlString() |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
protected void |
readExternalizable(ActionScriptClassDescriptor desc,
java.lang.Object result) |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
protected ActionScriptClassDescriptor |
readInlineActionScriptClassDescriptor(int flags) |
int |
readInt() |
java.lang.String |
readLine()
Deprecated.
|
long |
readLong() |
java.lang.Object |
readObject() |
protected java.lang.Object |
readObject(int type) |
short |
readShort() |
protected void |
readStandard(ActionScriptClassDescriptor desc,
java.lang.Object result) |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
java.lang.String |
readUTF() |
void |
reset() |
long |
skip(long n) |
int |
skipBytes(int n) |
protected final java.util.List<java.lang.String> storedStrings
protected final java.util.List<java.lang.Object> storedObjects
protected final java.util.List<ActionScriptClassDescriptor> storedClassDescriptors
protected java.util.Map<java.lang.String,org.w3c.dom.Document> documentCache
protected final AliasRegistry aliasRegistry
protected final ExternalizersConfig externalizersConfig
protected final AMF3DeserializerSecurizer securizer
protected final XMLUtil xmlUtil
public AMF3Deserializer(java.io.InputStream in)
public AMF3Deserializer(java.io.InputStream in,
int capacity)
public void reset()
public java.lang.Object readObject()
throws java.io.IOException
readObject in interface java.io.ObjectInputjava.io.IOExceptionprotected java.lang.Object readObject(int type)
throws java.io.IOException
java.io.IOExceptionprotected int readAMF3Integer()
throws java.io.IOException
java.io.IOExceptionprotected int readAMF3UnsignedInteger()
throws java.io.IOException
java.io.IOExceptionprotected java.lang.Double readAMF3Double()
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String readAMF3String()
throws java.io.IOException
java.io.IOExceptionprotected java.util.Date readAMF3Date()
throws java.io.IOException
java.io.IOExceptionprotected java.lang.Object readAMF3Array()
throws java.io.IOException
java.io.IOExceptionprotected int[] readAMF3VectorInt()
throws java.io.IOException
java.io.IOExceptionprotected long[] readAMF3VectorUint()
throws java.io.IOException
java.io.IOExceptionprotected double[] readAMF3VectorNumber()
throws java.io.IOException
java.io.IOExceptionprotected java.util.List<java.lang.Object> readAMF3VectorObject()
throws java.io.IOException
java.io.IOExceptionprotected java.util.Map<java.lang.Object,java.lang.Object> readAMF3Dictionary()
throws java.io.IOException
java.io.IOExceptionprotected org.w3c.dom.Document readAMF3Xml()
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String readAMF3XmlString()
throws java.io.IOException
java.io.IOExceptionprotected byte[] readAMF3ByteArray()
throws java.io.IOException
java.io.IOExceptionprotected java.lang.Object readAMF3Object()
throws java.io.IOException
java.io.IOExceptionprotected void readExternalizable(ActionScriptClassDescriptor desc, java.lang.Object result) throws java.io.IOException
java.io.IOExceptionprotected void readStandard(ActionScriptClassDescriptor desc, java.lang.Object result) throws java.io.IOException
java.io.IOExceptionprotected java.lang.Object newInstance(ActionScriptClassDescriptor desc)
protected ActionScriptClassDescriptor readActionScriptClassDescriptor(int flags) throws java.io.IOException
java.io.IOExceptionprotected ActionScriptClassDescriptor readInlineActionScriptClassDescriptor(int flags) throws java.io.IOException
java.io.IOExceptionprotected void addToStoredClassDescriptors(ActionScriptClassDescriptor desc)
protected ActionScriptClassDescriptor getFromStoredClassDescriptors(int index)
public void readFully(byte[] b)
throws java.io.IOException
readFully in interface java.io.DataInputjava.io.IOExceptionpublic void readFully(byte[] b,
int off,
int len)
throws java.io.IOException
readFully in interface java.io.DataInputjava.io.IOExceptionpublic int skipBytes(int n)
throws java.io.IOException
skipBytes in interface java.io.DataInputjava.io.IOExceptionpublic boolean readBoolean()
throws java.io.IOException
readBoolean in interface java.io.DataInputjava.io.IOExceptionpublic byte readByte()
throws java.io.IOException
readByte in interface java.io.DataInputjava.io.IOExceptionpublic int readUnsignedByte()
throws java.io.IOException
readUnsignedByte in interface java.io.DataInputjava.io.IOExceptionpublic short readShort()
throws java.io.IOException
readShort in interface java.io.DataInputjava.io.IOExceptionpublic int readUnsignedShort()
throws java.io.IOException
readUnsignedShort in interface java.io.DataInputjava.io.IOExceptionpublic char readChar()
throws java.io.IOException
readChar in interface java.io.DataInputjava.io.IOExceptionpublic int readInt()
throws java.io.IOException
readInt in interface java.io.DataInputjava.io.IOExceptionpublic long readLong()
throws java.io.IOException
readLong in interface java.io.DataInputjava.io.IOExceptionpublic float readFloat()
throws java.io.IOException
readFloat in interface java.io.DataInputjava.io.IOExceptionpublic double readDouble()
throws java.io.IOException
readDouble in interface java.io.DataInputjava.io.IOException@Deprecated
public java.lang.String readLine()
throws java.io.IOException
readLine in interface java.io.DataInputjava.io.IOExceptionpublic java.lang.String readUTF()
throws java.io.IOException
readUTF in interface java.io.DataInputjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in interface java.io.ObjectInputjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in interface java.io.ObjectInputjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in interface java.io.ObjectInputjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in interface java.io.ObjectInputjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in interface java.io.ObjectInputjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.ObjectInputclose in interface java.lang.AutoCloseablejava.io.IOException