org.red5.io.amf3
Modifier and Type | Class and Description |
---|---|
protected static class |
Input.ClassReference
Holds informations about already deserialized classes.
|
protected static class |
Input.PendingObject
Dummy class that is stored as reference for objects currently
being deserialized that reference themselves.
|
static class |
Input.RefStorage
Class used to collect AMF3 references.
|
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log
Logger
|
buf, classAliases, currentDataType
Constructor and Description |
---|
Input(IoBuffer buf)
Creates Input object for AMF3 from byte buffer
|
Input(IoBuffer buf,
Input.RefStorage refStorage)
Creates Input object for AMF3 from byte buffer and initializes references
from passed RefStorage
|
Modifier and Type | Method and Description |
---|---|
void |
enforceAMF3()
Force using AMF3 everywhere
|
protected IoBuffer |
getBuffer()
Provide access to raw data.
|
Input.RefStorage |
getRefStorage() |
String |
getString()
Reads string from buffer
|
Object |
readArray(Deserializer deserializer,
Type target)
Returns an array
|
Boolean |
readBoolean(Type target)
Reads a boolean
|
ByteArray |
readByteArray(Type target)
Read ByteArray object.
|
Object |
readCustom(Type target)
Reads Custom
|
byte |
readDataType()
Reads the data type
|
Date |
readDate(Type target)
Returns a date
|
Object |
readMap(Deserializer deserializer,
Type target)
Read a map containing key - value pairs.
|
Object |
readNull(Type target)
Reads a null (value)
|
Number |
readNumber(Type target)
Reads a Number
|
Object |
readObject(Deserializer deserializer,
Type target)
Reads start object
|
Object |
readReference(Type target)
Reads Reference
|
String |
readString(int length)
Reads a string of a set length.
|
String |
readString(Type target)
Reads a string
|
Vector<Integer> |
readVectorInt()
Read Vector
|
Vector<Double> |
readVectorNumber()
Read Vector
|
Vector<Object> |
readVectorObject()
Read Vector
|
Vector<Long> |
readVectorUInt()
Read Vector
|
Document |
readXML(Type target)
Reads XML
|
void |
reset()
Resets map
|
getPropertyType, getString, getString, hasMoreProperties, newInstance, readBean, readDataType, readKeyValues, readKeyValues, readPropertyName, readSimpleObject, skipEndObject, skipPropertySeparator
clearReferences, getReference, storeReference, storeReference
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearReferences, readKeyValues
public Input(IoBuffer buf)
buf
- Byte bufferpublic Input(IoBuffer buf, Input.RefStorage refStorage)
buf
- bufferrefStorage
- ref storagepublic void enforceAMF3()
protected IoBuffer getBuffer()
public byte readDataType()
readDataType
in interface Input
readDataType
in class Input
public Boolean readBoolean(Type target)
readBoolean
in interface Input
readBoolean
in class Input
target
- target typepublic Number readNumber(Type target)
readNumber
in interface Input
readNumber
in class Input
target
- target typepublic String readString(Type target)
readString
in interface Input
readString
in class Input
target
- target typepublic String readString(int length)
length
- the length of the stringpublic Input.RefStorage getRefStorage()
public Object readArray(Deserializer deserializer, Type target)
public Object readMap(Deserializer deserializer, Type target)
Input
public Object readObject(Deserializer deserializer, Type target)
Input
readObject
in interface Input
readObject
in class Input
deserializer
- Deserializer to usetarget
- target typepublic ByteArray readByteArray(Type target)
readByteArray
in interface Input
readByteArray
in class Input
target
- target typepublic Vector<Integer> readVectorInt()
readVectorInt
in interface Input
readVectorInt
in class Input
public Vector<Long> readVectorUInt()
readVectorUInt
in interface Input
readVectorUInt
in class Input
public Vector<Double> readVectorNumber()
readVectorNumber
in interface Input
readVectorNumber
in class Input
public Vector<Object> readVectorObject()
readVectorObject
in interface Input
readVectorObject
in class Input
public Object readCustom(Type target)
readCustom
in interface Input
readCustom
in class Input
target
- target typepublic Object readReference(Type target)
readReference
in interface Input
readReference
in class Input
target
- target typeCopyright © 2006-2012 The Red5 Project