|
||||||||||
| 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. |
| Nested classes/interfaces inherited from class org.red5.io.object.BaseInput |
|---|
BaseInput.ReferenceMode |
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
log
Logger |
| Fields inherited from class org.red5.io.amf.Input |
|---|
buf, currentDataType |
| Fields inherited from class org.red5.io.object.BaseInput |
|---|
referenceMode, refId, refMap |
| Constructor Summary | |
|---|---|
Input(org.apache.mina.common.ByteBuffer buf)
Creates Input object for AMF3 from byte buffer |
|
Input(org.apache.mina.common.ByteBuffer 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 org.apache.mina.common.ByteBuffer |
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)
Returns an array |
Boolean |
readBoolean()
Reads a boolean |
ByteArray |
readByteArray()
Read ByteArray object. |
Object |
readCustom()
Reads Custom |
byte |
readDataType()
Reads the data type |
Date |
readDate()
Returns a date |
Object |
readMap(Deserializer deserializer)
Read a map containing key - value pairs. |
Object |
readNull()
Reads a null (value) |
Number |
readNumber()
Reads a Number |
Object |
readObject(Deserializer deserializer)
Reads start object |
Object |
readReference()
Reads Reference |
String |
readString()
Reads a string |
Document |
readXML()
Reads XML |
void |
reset()
Resets map |
| Methods inherited from class org.red5.io.amf.Input |
|---|
getPropertyType, getString, hasMoreProperties, readBean, readDataType, readKeyValues, readKeyValues, readPropertyName, readSimpleObject, reset, 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 org.slf4j.Logger log
| Constructor Detail |
|---|
public Input(org.apache.mina.common.ByteBuffer buf)
buf - Byte buffer
public Input(org.apache.mina.common.ByteBuffer buf,
Input.RefStorage refStorage)
buf - refStorage - | Method Detail |
|---|
public void enforceAMF3()
protected org.apache.mina.common.ByteBuffer getBuffer()
public byte readDataType()
readDataType in interface InputreadDataType in class Inputpublic Object readNull()
readNull in interface InputreadNull in class Inputpublic Boolean readBoolean()
readBoolean in interface InputreadBoolean in class Inputpublic Number readNumber()
readNumber in interface InputreadNumber in class Inputpublic String readString()
readString in interface InputreadString in class Inputpublic String getString()
Input
getString in interface InputgetString in class Inputpublic Date readDate()
readDate in interface InputreadDate in class Inputpublic Object readArray(Deserializer deserializer)
readArray in interface InputreadArray in class Inputpublic Object readMap(Deserializer deserializer)
Input
readMap in interface InputreadMap in class Inputpublic Object readObject(Deserializer deserializer)
Input
readObject in interface InputreadObject in class Inputdeserializer - Deserializer to use
public ByteArray readByteArray()
Input
readByteArray in interface InputreadByteArray in class Inputpublic Object readCustom()
readCustom in interface InputreadCustom in class Inputpublic Object readReference()
readReference in interface InputreadReference in class Inputpublic void reset()
reset in class Inputprotected Object newInstance(String className)
newInstance in class InputclassName - Class name as String
public Document readXML()
readXML in interface InputreadXML in class Input
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||