Package com.wowza.wms.amf
Class AMFDataContextDeserialize
Object
com.wowza.wms.amf.AMFDataContextDeserialize
AMF context used for deserialization
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorAMFDataContextDeserialize
(int objectEncoding) Constructor with encoding -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add an object to the object cachevoid
Add a string to the string cachevoid
addTrait
(AMFDataTrait obj) Add a trait to the trait cacheint
Internal use, get and clear int dataGet charset name used to deserialize strings (default is AMFDAta.AMF_DEFAULT_DESERIALIZE_CHARSETNAME = UTF-8)int
Internal use, get int datagetObject
(int index) Get an object from the object cacheint
Get object encoding, see AMFData.AMF_LEVEL*getString
(int index) Get a string from the string cachegetTrait
(int index) Get a trait from the trait cacheboolean
isAMF0()
Is context AMF0boolean
isAMF3()
Is context AMF3boolean
Internal use, get int datavoid
setCharsetName
(String charsetName) Set charset name used to deserialize strings (default is AMFDAta.AMF_DEFAULT_DESERIALIZE_CHARSETNAME = UTF-8)void
setIntData
(int intData) Internal use, set int datavoid
setObjectEncoding
(int objectEncoding) Set object encoding, see AMFData.AMF_LEVEL*
-
Constructor Details
-
AMFDataContextDeserialize
public AMFDataContextDeserialize()Constructor -
AMFDataContextDeserialize
public AMFDataContextDeserialize(int objectEncoding) Constructor with encoding- Parameters:
objectEncoding
- object encoding, see AMFData.AMF_LEVEL*
-
-
Method Details
-
isIntData
public boolean isIntData()Internal use, get int data- Returns:
- returns true if pending int data
-
setIntData
public void setIntData(int intData) Internal use, set int data- Parameters:
intData
- int data
-
getIntData
public int getIntData()Internal use, get int data- Returns:
- int data
-
clearIntData
public int clearIntData()Internal use, get and clear int data- Returns:
- int data
-
getObjectEncoding
public int getObjectEncoding()Get object encoding, see AMFData.AMF_LEVEL*- Returns:
- object encoding, see AMFData.AMF_LEVEL*
-
setObjectEncoding
public void setObjectEncoding(int objectEncoding) Set object encoding, see AMFData.AMF_LEVEL*- Parameters:
objectEncoding
- object encoding, see AMFData.AMF_LEVEL*
-
isAMF3
public boolean isAMF3()Is context AMF3- Returns:
- true, if AMF3
-
isAMF0
public boolean isAMF0()Is context AMF0- Returns:
- true, if AMF0
-
addString
Add a string to the string cache- Parameters:
str
- string value
-
getString
Get a string from the string cache- Parameters:
index
- index- Returns:
- string value
- Throws:
IndexOutOfBoundsException
-
addObject
Add an object to the object cache- Parameters:
obj
- object value
-
getObject
Get an object from the object cache- Parameters:
index
- index- Returns:
- object value
- Throws:
IndexOutOfBoundsException
-
addTrait
Add a trait to the trait cache- Parameters:
obj
- trait object
-
getTrait
Get a trait from the trait cache- Parameters:
index
- index- Returns:
- trait object
- Throws:
IndexOutOfBoundsException
-
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
-
setCharsetName
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
-