|
||||||||||
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 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. |
Field Summary | |
---|---|
protected static org.slf4j.Logger |
log
Logger |
Fields inherited from class org.red5.io.amf.Input |
---|
buf, classAliases, 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 |
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 |
List<Integer> |
readVectorInt()
Read Vector |
List<Double> |
readVectorNumber()
Read Vector |
List<Object> |
readVectorObject()
Read Vector |
List<Long> |
readVectorUInt()
Read Vector |
Document |
readXML(Type target)
Reads XML |
void |
reset()
Resets map |
Methods inherited from class org.red5.io.amf.Input |
---|
getPropertyType, getString, hasMoreProperties, newInstance, 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 org.slf4j.Logger log
Constructor Detail |
---|
public Input(IoBuffer buf)
buf
- Byte bufferpublic Input(IoBuffer buf, Input.RefStorage refStorage)
buf
- bufferrefStorage
- ref storageMethod Detail |
---|
public void enforceAMF3()
protected IoBuffer getBuffer()
public byte readDataType()
readDataType
in interface Input
readDataType
in class Input
public Object readNull(Type target)
readNull
in interface Input
readNull
in class Input
target
- target type
public Boolean readBoolean(Type target)
readBoolean
in interface Input
readBoolean
in class Input
target
- target type
public Number readNumber(Type target)
readNumber
in interface Input
readNumber
in class Input
target
- target type
public String readString(Type target)
readString
in interface Input
readString
in class Input
target
- target type
public String readString(int length)
length
- the length of the string
public String getString()
Input
getString
in interface Input
getString
in class Input
public Date readDate(Type target)
readDate
in interface Input
readDate
in class Input
target
- target type
public Object readArray(Deserializer deserializer, Type target)
readArray
in interface Input
readArray
in class Input
deserializer
- deserializertarget
- target type
public Object readMap(Deserializer deserializer, Type target)
Input
readMap
in interface Input
readMap
in class Input
deserializer
- deserializertarget
- target type
public Object readObject(Deserializer deserializer, Type target)
Input
readObject
in interface Input
readObject
in class Input
deserializer
- Deserializer to usetarget
- target type
public ByteArray readByteArray(Type target)
Input
readByteArray
in interface Input
readByteArray
in class Input
target
- target type
public List<Integer> readVectorInt()
Input
readVectorInt
in interface Input
readVectorInt
in class Input
public List<Long> readVectorUInt()
Input
readVectorUInt
in interface Input
readVectorUInt
in class Input
public List<Double> readVectorNumber()
Input
readVectorNumber
in interface Input
readVectorNumber
in class Input
public List<Object> readVectorObject()
Input
public Object readCustom(Type target)
readCustom
in interface Input
readCustom
in class Input
target
- target type
public Object readReference(Type target)
readReference
in interface Input
readReference
in class Input
target
- target type
public void reset()
reset
in class Input
public Document readXML(Type target)
readXML
in interface Input
readXML
in class Input
target
- target type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |