|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.red5.io.object.BaseInput
org.red5.io.amf.Input
org.red5.io.amf3.Input
public class Input
Input for Red5 data (AMF3) types
| Nested Class Summary | |
|---|---|
protected class |
Input.ClassReference
Holds informations about already deserialized classes. |
protected 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. |
| Field Summary | |
|---|---|
protected static Logger |
log
Logger |
| Fields inherited from class org.red5.io.amf.Input |
|---|
buf, currentDataType |
| Fields inherited from class org.red5.io.object.BaseInput |
|---|
refId, refMap |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
void |
enforceAMF3()
Force using AMF3 everywhere |
protected IoBuffer |
getBuffer()
Provide access to raw data. |
String |
getString()
Reads string from buffer |
protected Object |
newInstance(String className)
Creats a new instance of the className parameter and returns as an Object |
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(Type target)
Reads a string |
Document |
readXML(Type target)
Reads XML |
void |
reset()
Resets map |
| Methods inherited from class org.red5.io.amf.Input |
|---|
getPropertyType, getString, hasMoreProperties, readBean, readDataType, readKeyValues, readKeyValues, readPropertyName, readSimpleObject, skipEndObject, skipPropertySeparator |
| Methods inherited from class org.red5.io.object.BaseInput |
|---|
clearReferences, getReference, storeReference, storeReference |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.red5.io.object.Input |
|---|
clearReferences, readKeyValues |
| Field Detail |
|---|
protected static Logger log
| Constructor Detail |
|---|
public Input(IoBuffer buf)
buf - Byte buffer
public Input(IoBuffer buf,
Input.RefStorage refStorage)
buf - bufferrefStorage - ref storage| Method Detail |
|---|
public void enforceAMF3()
protected IoBuffer getBuffer()
public byte readDataType()
readDataType in interface InputreadDataType in class Inputpublic Object readNull(Type target)
readNull in interface InputreadNull in class Inputtarget - target type
public Boolean readBoolean(Type target)
readBoolean in interface InputreadBoolean in class Inputtarget - target type
public Number readNumber(Type target)
readNumber in interface InputreadNumber in class Inputtarget - target type
public String readString(Type target)
readString in interface InputreadString in class Inputtarget - target type
public String getString()
Input
getString in interface InputgetString in class Inputpublic Date readDate(Type target)
readDate in interface InputreadDate in class Inputtarget - target type
public Object readArray(Deserializer deserializer,
Type target)
readArray in interface InputreadArray in class Inputdeserializer - deserializertarget - target type
public Object readMap(Deserializer deserializer,
Type target)
Input
readMap in interface InputreadMap in class Inputdeserializer - deserializertarget - target type
public Object readObject(Deserializer deserializer,
Type target)
Input
readObject in interface InputreadObject in class Inputdeserializer - Deserializer to usetarget - target type
public ByteArray readByteArray(Type target)
Input
readByteArray in interface InputreadByteArray in class Inputtarget - target type
public Object readCustom(Type target)
readCustom in interface InputreadCustom in class Inputtarget - target type
public Object readReference(Type target)
readReference in interface InputreadReference in class Inputtarget - target type
public void reset()
reset in class Inputprotected Object newInstance(String className)
newInstance in class InputclassName - Class name as String
public Document readXML(Type target)
readXML in interface InputreadXML in class Inputtarget - target type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||