Package com.wowza.wms.amf
Class AMFDataContextDeserialize
- Object
- 
- com.wowza.wms.amf.AMFDataContextDeserialize
 
- 
 public class AMFDataContextDeserialize extends ObjectAMF context used for deserialization 
- 
- 
Constructor SummaryConstructors Constructor Description AMFDataContextDeserialize()ConstructorAMFDataContextDeserialize(int objectEncoding)Constructor with encoding
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddObject(Object obj)Add an object to the object cachevoidaddString(String str)Add a string to the string cachevoidaddTrait(AMFDataTrait obj)Add a trait to the trait cacheintclearIntData()Internal use, get and clear int dataStringgetCharsetName()Get charset name used to deserialize strings (default is AMFDAta.AMF_DEFAULT_DESERIALIZE_CHARSETNAME = UTF-8)intgetIntData()Internal use, get int dataObjectgetObject(int index)Get an object from the object cacheintgetObjectEncoding()Get object encoding, see AMFData.AMF_LEVEL*StringgetString(int index)Get a string from the string cacheAMFDataTraitgetTrait(int index)Get a trait from the trait cachebooleanisAMF0()Is context AMF0booleanisAMF3()Is context AMF3booleanisIntData()Internal use, get int datavoidsetCharsetName(String charsetName)Set charset name used to deserialize strings (default is AMFDAta.AMF_DEFAULT_DESERIALIZE_CHARSETNAME = UTF-8)voidsetIntData(int intData)Internal use, set int datavoidsetObjectEncoding(int objectEncoding)Set object encoding, see AMFData.AMF_LEVEL*
 
- 
- 
- 
Method Detail- 
isIntDatapublic boolean isIntData() Internal use, get int data- Returns:
- returns true if pending int data
 
 - 
setIntDatapublic void setIntData(int intData) Internal use, set int data- Parameters:
- intData- int data
 
 - 
getIntDatapublic int getIntData() Internal use, get int data- Returns:
- int data
 
 - 
clearIntDatapublic int clearIntData() Internal use, get and clear int data- Returns:
- int data
 
 - 
getObjectEncodingpublic int getObjectEncoding() Get object encoding, see AMFData.AMF_LEVEL*- Returns:
- object encoding, see AMFData.AMF_LEVEL*
 
 - 
setObjectEncodingpublic void setObjectEncoding(int objectEncoding) Set object encoding, see AMFData.AMF_LEVEL*- Parameters:
- objectEncoding- object encoding, see AMFData.AMF_LEVEL*
 
 - 
isAMF3public boolean isAMF3() Is context AMF3- Returns:
- true, if AMF3
 
 - 
isAMF0public boolean isAMF0() Is context AMF0- Returns:
- true, if AMF0
 
 - 
addStringpublic void addString(String str) Add a string to the string cache- Parameters:
- str- string value
 
 - 
getStringpublic String getString(int index) throws IndexOutOfBoundsExceptionGet a string from the string cache- Parameters:
- index- index
- Returns:
- string value
- Throws:
- IndexOutOfBoundsException
 
 - 
addObjectpublic void addObject(Object obj) Add an object to the object cache- Parameters:
- obj- object value
 
 - 
getObjectpublic Object getObject(int index) throws IndexOutOfBoundsExceptionGet an object from the object cache- Parameters:
- index- index
- Returns:
- object value
- Throws:
- IndexOutOfBoundsException
 
 - 
addTraitpublic void addTrait(AMFDataTrait obj) Add a trait to the trait cache- Parameters:
- obj- trait object
 
 - 
getTraitpublic AMFDataTrait getTrait(int index) throws IndexOutOfBoundsException Get a trait from the trait cache- Parameters:
- index- index
- Returns:
- trait object
- Throws:
- IndexOutOfBoundsException
 
 - 
getCharsetNamepublic String getCharsetName() Get charset name used to deserialize strings (default is AMFDAta.AMF_DEFAULT_DESERIALIZE_CHARSETNAME = UTF-8)- Returns:
- charset name used to decode/encode strings
 
 - 
setCharsetNamepublic void setCharsetName(String charsetName) Set charset name used to deserialize strings (default is AMFDAta.AMF_DEFAULT_DESERIALIZE_CHARSETNAME = UTF-8)- Parameters:
- charsetName- charset name used to decode/encode strings
 
 
- 
 
-