org.red5.io.mock
Class Input

java.lang.Object
  extended by org.red5.io.object.BaseInput
      extended by org.red5.io.mock.Input
All Implemented Interfaces:
Input

public class Input
extends BaseInput
implements Input


Nested Class Summary
 
Nested classes/interfaces inherited from class org.red5.io.object.BaseInput
BaseInput.ReferenceMode
 
Field Summary
protected  int idx
           
protected  List<Object> list
           
protected static org.slf4j.Logger log
           
 
Fields inherited from class org.red5.io.object.BaseInput
referenceMode, refId, refMap
 
Constructor Summary
Input(List<Object> list)
           
 
Method Summary
protected  Object getNext()
          Getter for property 'next'.
 String getString()
          Read a string without the string type header.
 Object readArray(Deserializer deserializer)
          Read an array.
 Boolean readBoolean()
          Read Boolean value
 ByteArray readByteArray()
          Read ByteArray object.
 Object readCustom()
          Read custom object
 byte readDataType()
          Read type of data
 Date readDate()
          Read date object
 Map<String,Object> readKeyValues(Deserializer deserializer)
          Read key - value pairs.
 Object readMap(Deserializer deserializer)
          Read a map containing key - value pairs.
 Object readNull()
          Read Null data type
 Number readNumber()
          Read Number object
 Object readObject(Deserializer deserializer)
          Read an object.
 Object readReference()
          Read reference to Complex Data Type.
 String readString()
          Read String object
 Document readXML()
          Read XML document
 
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
 

Field Detail

log

protected static org.slf4j.Logger log

list

protected List<Object> list

idx

protected int idx
Constructor Detail

Input

public Input(List<Object> list)
Method Detail

getNext

protected Object getNext()
Getter for property 'next'.

Returns:
Value for property 'next'.

readDataType

public byte readDataType()
Read type of data

Specified by:
readDataType in interface Input
Returns:
Type of data as byte

readNull

public Object readNull()
Read Null data type

Specified by:
readNull in interface Input
Returns:
Null datatype (AS)

readBoolean

public Boolean readBoolean()
Read Boolean value

Specified by:
readBoolean in interface Input
Returns:
Boolean

readNumber

public Number readNumber()
Read Number object

Specified by:
readNumber in interface Input
Returns:
Number

getString

public String getString()
Read a string without the string type header.

Specified by:
getString in interface Input
Returns:
String

readString

public String readString()
Read String object

Specified by:
readString in interface Input
Returns:
String

readDate

public Date readDate()
Read date object

Specified by:
readDate in interface Input
Returns:
Date

readArray

public Object readArray(Deserializer deserializer)
Read an array. This can result in a List or Map being deserialized depending on the array type found.

Specified by:
readArray in interface Input
Returns:
array

readMap

public Object readMap(Deserializer deserializer)
Read a map containing key - value pairs. This can result in a List or Map being deserialized depending on the map type found.

Specified by:
readMap in interface Input
Returns:
Map

readKeyValues

public Map<String,Object> readKeyValues(Deserializer deserializer)
Read key - value pairs. This is required for the RecordSet deserializer.

Specified by:
readKeyValues in interface Input

readObject

public Object readObject(Deserializer deserializer)
Read an object.

Specified by:
readObject in interface Input
Returns:
object

readXML

public Document readXML()
Read XML document

Specified by:
readXML in interface Input
Returns:
XML DOM document

readCustom

public Object readCustom()
Read custom object

Specified by:
readCustom in interface Input
Returns:
Custom object

readByteArray

public ByteArray readByteArray()
Read ByteArray object.

Specified by:
readByteArray in interface Input
Returns:
ByteArray object

readReference

public Object readReference()
Read reference to Complex Data Type. Objects that are collaborators (properties) of other objects must be stored as references in map of id-reference pairs.

Specified by:
readReference in interface Input


Copyright © 2006-2007 the Red5 project.