Package com.wowza.wms.amf
Interface IAMFDataObj
-
- All Known Implementing Classes:
AMFDataMixedArray
,AMFDataObj
public interface IAMFDataObj
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
containsKey(String name)
Return true if the object/array contains keyAMFData
get(int index)
Return the object at a particular index.AMFData
get(String name)
Return the object at a particular key.boolean
getBoolean(int index)
Get item at index return as booleanboolean
getBoolean(String name)
Get item at key return as booleanbyte
getByte(int index)
Get item at index return as bytebyte
getByte(String name)
Get item at key return as bytejava.util.Date
getDate(int index)
Get item at index return as Datejava.util.Date
getDate(String name)
Get item at key return as Datedouble
getDouble(int index)
Get item at index return as doubledouble
getDouble(String name)
Get item at key return as doublefloat
getFloat(int index)
Get item at index return as floatfloat
getFloat(String name)
Get item at key return as floatint
getInt(int index)
Get item at index return as intint
getInt(String name)
Get item at key return as intString
getKey(int index)
Return the key at a particular index.java.util.List
getKeys()
Return a list of all the keys (the list is a copy)long
getLong(int index)
Get item at index return as longlong
getLong(String name)
Get item at key return as longAMFDataObj
getObject(int index)
Get item at index return as AMFDataObjAMFDataObj
getObject(String name)
Get item at key return as AMFDataObjshort
getShort(int index)
Get item at index return as shortshort
getShort(String name)
Get item at key return as shortString
getString(int index)
Get item at index return as StringString
getString(String name)
Get item at key return as Stringvoid
put(String name, boolean data)
Put or replace boolean value at key (data will be wrapped in an AMFDataItem object)void
put(String name, double data)
Put or replace double value at key (data will be wrapped in an AMFDataItem object)void
put(String name, int data)
Put or replace int value at key (data will be wrapped in an AMFDataItem object)void
put(String name, long data)
Put or replace long value at key (data will be wrapped in an AMFDataItem object)void
put(String name, AMFData data)
Put or replace object at keyvoid
put(String name, String data)
Put or replace string value at key (data will be wrapped in an AMFDataItem object)void
put(String name, java.util.Date data)
Put or replace date value at key (data will be wrapped in an AMFDataItem object)AMFData
remove(int index)
Remove element by indexAMFData
remove(String name)
Remove element by key
-
-
-
Method Detail
-
containsKey
boolean containsKey(String name)
Return true if the object/array contains key- Parameters:
name
- key- Returns:
- Return true the object/array contains key
-
put
void put(String name, AMFData data)
Put or replace object at key- Parameters:
name
- keydata
- object
-
put
void put(String name, String data)
Put or replace string value at key (data will be wrapped in an AMFDataItem object)- Parameters:
name
- keydata
- string value
-
put
void put(String name, double data)
Put or replace double value at key (data will be wrapped in an AMFDataItem object)- Parameters:
name
- keydata
- double value
-
put
void put(String name, int data)
Put or replace int value at key (data will be wrapped in an AMFDataItem object)- Parameters:
name
- keydata
- int value
-
put
void put(String name, long data)
Put or replace long value at key (data will be wrapped in an AMFDataItem object)- Parameters:
name
- keydata
- long value
-
put
void put(String name, java.util.Date data)
Put or replace date value at key (data will be wrapped in an AMFDataItem object)- Parameters:
name
- keydata
- date value
-
put
void put(String name, boolean data)
Put or replace boolean value at key (data will be wrapped in an AMFDataItem object)- Parameters:
name
- keydata
- boolean value
-
getKeys
java.util.List getKeys()
Return a list of all the keys (the list is a copy)- Returns:
- new list that contains one entry for each key
-
getKey
String getKey(int index)
Return the key at a particular index.- Parameters:
index
-- Returns:
- Return key at index or null if out of bounds
-
get
AMFData get(String name)
Return the object at a particular key.- Parameters:
name
- key- Returns:
- Return object or null if out of bounds
-
get
AMFData get(int index)
Return the object at a particular index.- Parameters:
index
- index- Returns:
- Return object or null if out of bounds
-
remove
AMFData remove(String name)
Remove element by key- Parameters:
name
- key- Returns:
- removed object or null if not found
-
remove
AMFData remove(int index)
Remove element by index- Parameters:
index
- index- Returns:
- removed object or null if not found
-
getString
String getString(String name)
Get item at key return as String- Parameters:
name
- key- Returns:
- Return item as String or null if out of bounds
-
getInt
int getInt(String name)
Get item at key return as int- Parameters:
name
- key- Returns:
- Return item as int or 0 if out of bounds
-
getLong
long getLong(String name)
Get item at key return as long- Parameters:
name
- key- Returns:
- Return item as long or 0 if out of bounds
-
getShort
short getShort(String name)
Get item at key return as short- Parameters:
name
- key- Returns:
- Return item as short or 0 if out of bounds
-
getDouble
double getDouble(String name)
Get item at key return as double- Parameters:
name
- key- Returns:
- Return item as double or 0 if out of bounds
-
getFloat
float getFloat(String name)
Get item at key return as float- Parameters:
name
- key- Returns:
- Return item as float or 0 if out of bounds
-
getByte
byte getByte(String name)
Get item at key return as byte- Parameters:
name
- key- Returns:
- Return item as byte or 0 if out of bounds
-
getBoolean
boolean getBoolean(String name)
Get item at key return as boolean- Parameters:
name
- key- Returns:
- Return item as boolean or false if out of bounds
-
getDate
java.util.Date getDate(String name)
Get item at key return as Date- Parameters:
name
- key- Returns:
- Return item as Date or null if out of bounds
-
getObject
AMFDataObj getObject(String name)
Get item at key return as AMFDataObj- Parameters:
name
- key- Returns:
- Return item as AMFDataObj or null if out of bounds
-
getString
String getString(int index)
Get item at index return as String- Parameters:
index
- index- Returns:
- Return item as String or null if out of bounds
-
getInt
int getInt(int index)
Get item at index return as int- Parameters:
index
- index- Returns:
- Return item as int or 0 if out of bounds
-
getLong
long getLong(int index)
Get item at index return as long- Parameters:
index
- index- Returns:
- Return item as long or 0 if out of bounds
-
getShort
short getShort(int index)
Get item at index return as short- Parameters:
index
- index- Returns:
- Return item as short or 0 if out of bounds
-
getByte
byte getByte(int index)
Get item at index return as byte- Parameters:
index
- index- Returns:
- Return item as byte or 0 if out of bounds
-
getDouble
double getDouble(int index)
Get item at index return as double- Parameters:
index
- index- Returns:
- Return item as double or 0 if out of bounds
-
getFloat
float getFloat(int index)
Get item at index return as float- Parameters:
index
- index- Returns:
- Return item as float or 0 if out of bounds
-
getBoolean
boolean getBoolean(int index)
Get item at index return as boolean- Parameters:
index
- index- Returns:
- Return item as boolean or false if out of bounds
-
getDate
java.util.Date getDate(int index)
Get item at index return as Date- Parameters:
index
- index- Returns:
- Return item as Date or null if out of bounds
-
getObject
AMFDataObj getObject(int index)
Get item at index return as AMFDataObj- Parameters:
index
- index- Returns:
- Return item as AMFDataObj or null if out of bounds
-
-