Package com.wowza.wms.amf
Class AMFDataContextSerialize
- Object
-
- com.wowza.wms.amf.AMFDataContextSerialize
-
public class AMFDataContextSerialize extends Object
AMF context used for serialization
-
-
Constructor Summary
Constructors Constructor Description AMFDataContextSerialize()
ConstructorAMFDataContextSerialize(int objectEncoding)
Contructor with object encoding, see AMFData.AMF_LEVEL*
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getObjectEncoding()
Get object encoding, see AMFData.AMF_LEVEL*int
getObjectReference(Object obj)
Get index of object in object cacheint
getStringReference(String str)
Get index of string item in string cacheint
getTargetEncoding()
Get target encoding, see AMFData.AMF_LEVEL*int
getTraitReference(AMFDataTrait obj)
Get index of trait object in trait cacheboolean
isAMF0()
Is context AMF0boolean
isAMF3()
Is context AMF3void
setObjectEncoding(int objectEncoding)
Set object encoding, see AMFData.AMF_LEVEL*void
setTargetEncoding(int targetEncoding)
Set target encoding, , see AMFData.AMF_LEVEL*void
writeString(java.io.DataOutputStream out, String str)
Write a stream to the output buffer
-
-
-
Method Detail
-
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*
-
getTargetEncoding
public int getTargetEncoding()
Get target encoding, see AMFData.AMF_LEVEL*- Returns:
- target encoding, see AMFData.AMF_LEVEL*
-
setTargetEncoding
public void setTargetEncoding(int targetEncoding)
Set target encoding, , see AMFData.AMF_LEVEL*- Parameters:
targetEncoding
- target 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
-
getStringReference
public int getStringReference(String str)
Get index of string item in string cache- Parameters:
str
- string value- Returns:
- index
-
getObjectReference
public int getObjectReference(Object obj)
Get index of object in object cache- Parameters:
obj
- object value- Returns:
- index
-
getTraitReference
public int getTraitReference(AMFDataTrait obj)
Get index of trait object in trait cache- Parameters:
obj
- trait object- Returns:
- index
-
writeString
public void writeString(java.io.DataOutputStream out, String str)
Write a stream to the output buffer- Parameters:
out
- output bufferstr
- string value
-
-