Package com.wowza.wms.amf
Interface IAMFDataObj
- All Known Implementing Classes:
AMFDataMixedArray
,AMFDataObj
public interface IAMFDataObj
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String name) Return true if the object/array contains keyget
(int index) Return the object at a particular index.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
Get item at key return as bytegetDate
(int index) Get item at index return as DateGet item at key return as Datedouble
getDouble
(int index) Get item at index return as doubledouble
Get item at key return as doublefloat
getFloat
(int index) Get item at index return as floatfloat
Get item at key return as floatint
getInt
(int index) Get item at index return as intint
Get item at key return as intgetKey
(int index) Return the key at a particular index.getKeys()
Return a list of all the keys (the list is a copy)long
getLong
(int index) Get item at index return as longlong
Get item at key return as longgetObject
(int index) Get item at index return as AMFDataObjGet item at key return as AMFDataObjshort
getShort
(int index) Get item at index return as shortshort
Get item at key return as shortgetString
(int index) Get item at index return as StringGet item at key return as Stringvoid
Put or replace boolean value at key (data will be wrapped in an AMFDataItem object)void
Put or replace double value at key (data will be wrapped in an AMFDataItem object)void
Put or replace int value at key (data will be wrapped in an AMFDataItem object)void
Put or replace long value at key (data will be wrapped in an AMFDataItem object)void
Put or replace object at keyvoid
Put or replace string value at key (data will be wrapped in an AMFDataItem object)void
Put or replace date value at key (data will be wrapped in an AMFDataItem object)remove
(int index) Remove element by indexRemove element by key
-
Method Details
-
containsKey
Return true if the object/array contains key- Parameters:
name
- key- Returns:
- Return true the object/array contains key
-
put
Put or replace object at key- Parameters:
name
- keydata
- object
-
put
Put or replace string value at key (data will be wrapped in an AMFDataItem object)- Parameters:
name
- keydata
- string value
-
put
Put or replace double value at key (data will be wrapped in an AMFDataItem object)- Parameters:
name
- keydata
- double value
-
put
Put or replace int value at key (data will be wrapped in an AMFDataItem object)- Parameters:
name
- keydata
- int value
-
put
Put or replace long value at key (data will be wrapped in an AMFDataItem object)- Parameters:
name
- keydata
- long value
-
put
Put or replace date value at key (data will be wrapped in an AMFDataItem object)- Parameters:
name
- keydata
- date value
-
put
Put or replace boolean value at key (data will be wrapped in an AMFDataItem object)- Parameters:
name
- keydata
- boolean value
-
getKeys
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
Return the key at a particular index.- Parameters:
index
-- Returns:
- Return key at index or null if out of bounds
-
get
Return the object at a particular key.- Parameters:
name
- key- Returns:
- Return object or null if out of bounds
-
get
Return the object at a particular index.- Parameters:
index
- index- Returns:
- Return object or null if out of bounds
-
remove
Remove element by key- Parameters:
name
- key- Returns:
- removed object or null if not found
-
remove
Remove element by index- Parameters:
index
- index- Returns:
- removed object or null if not found
-
getString
Get item at key return as String- Parameters:
name
- key- Returns:
- Return item as String or null if out of bounds
-
getInt
Get item at key return as int- Parameters:
name
- key- Returns:
- Return item as int or 0 if out of bounds
-
getLong
Get item at key return as long- Parameters:
name
- key- Returns:
- Return item as long or 0 if out of bounds
-
getShort
Get item at key return as short- Parameters:
name
- key- Returns:
- Return item as short or 0 if out of bounds
-
getDouble
Get item at key return as double- Parameters:
name
- key- Returns:
- Return item as double or 0 if out of bounds
-
getFloat
Get item at key return as float- Parameters:
name
- key- Returns:
- Return item as float or 0 if out of bounds
-
getByte
Get item at key return as byte- Parameters:
name
- key- Returns:
- Return item as byte or 0 if out of bounds
-
getBoolean
Get item at key return as boolean- Parameters:
name
- key- Returns:
- Return item as boolean or false if out of bounds
-
getDate
Get item at key return as Date- Parameters:
name
- key- Returns:
- Return item as Date or null if out of bounds
-
getObject
Get item at key return as AMFDataObj- Parameters:
name
- key- Returns:
- Return item as AMFDataObj or null if out of bounds
-
getString
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
Get item at index return as Date- Parameters:
index
- index- Returns:
- Return item as Date or null if out of bounds
-
getObject
Get item at index return as AMFDataObj- Parameters:
index
- index- Returns:
- Return item as AMFDataObj or null if out of bounds
-