| Modifier and Type | Field and Description |
|---|---|
protected org.apache.mina.core.buffer.IoBuffer |
buf |
protected static Map<String,String> |
classAliases |
protected byte |
currentDataType |
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
Input(org.apache.mina.core.buffer.IoBuffer buf)
Creates Input object from byte buffer
|
| Modifier and Type | Method and Description |
|---|---|
protected Type |
getPropertyType(Object instance,
String propertyName) |
String |
getString()
Reads string from buffer
|
boolean |
hasMoreProperties()
Returns a boolean stating whether there are more properties
|
protected Object |
newInstance(String className)
Creates a new instance of the className parameter and returns as an Object
|
Object |
readArray(Type target)
Read an array.
|
protected Object |
readBean(Object bean)
Reads the input as a bean and returns an object
|
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
|
Map<String,Object> |
readKeyValues()
Read key - value pairs.
|
protected void |
readKeyValues(Map<String,Object> result)
Read key - value pairs into Map object
|
Object |
readMap()
Read a map containing key - value pairs.
|
Object |
readNull()
Reads a null.
|
Number |
readNumber()
Reads a Number.
|
Object |
readObject()
Reads start object
|
String |
readPropertyName()
Reads property name
|
Object |
readReference()
Reads Reference
|
protected Map<String,Object> |
readSimpleObject()
Reads the input as a map and returns a Map
|
String |
readString()
Reads a string
|
Vector<Integer> |
readVectorInt()
Read Vector<int> object.
|
Vector<Double> |
readVectorNumber()
Read Vector<Number> object.
|
Vector<Object> |
readVectorObject()
Read Vector<Object> object.
|
Vector<Long> |
readVectorUInt()
Read Vector<Long> object.
|
Document |
readXML()
Reads XML
|
void |
reset()
Resets internals.
|
void |
skipPropertySeparator()
Skips property separator
|
classAllowed, clearReferences, getReference, storeReference, storeReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearReferencesprotected org.slf4j.Logger log
protected org.apache.mina.core.buffer.IoBuffer buf
protected byte currentDataType
public Input(org.apache.mina.core.buffer.IoBuffer buf)
buf - Byte bufferpublic byte readDataType()
readDataType in interface InputAMFpublic Object readNull()
public Boolean readBoolean()
readBoolean in interface Inputpublic Number readNumber()
readNumber in interface Inputpublic String getString()
public String readString()
readString in interface Inputpublic Date readDate()
public Object readArray(Type target)
Inputpublic Map<String,Object> readKeyValues()
readKeyValues in interface Inputprotected void readKeyValues(Map<String,Object> result)
result - Map to put resulting pair topublic Object readMap()
Inputprotected Object newInstance(String className)
className - Class name as Stringprotected Object readBean(Object bean)
bean - Input as beanprotected Map<String,Object> readSimpleObject()
public Object readObject()
readObject in interface Inputpublic boolean hasMoreProperties()
true if there are more properties to read, false otherwisepublic String readPropertyName()
public void skipPropertySeparator()
public Document readXML()
public Object readCustom()
readCustom in interface Inputpublic ByteArray readByteArray()
readByteArray in interface Inputpublic Vector<Integer> readVectorInt()
readVectorInt in interface Inputpublic Vector<Long> readVectorUInt()
readVectorUInt in interface Inputpublic Vector<Double> readVectorNumber()
readVectorNumber in interface Inputpublic Vector<Object> readVectorObject()
readVectorObject in interface Inputpublic Object readReference()
readReference in interface InputCopyright © 2005–2017 Red5. All rights reserved.