Package com.wowza.wms.amf
Interface IAMFDataObj
- All Known Implementing Classes:
AMFDataMixedArray,AMFDataObj
public interface IAMFDataObj
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(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.booleangetBoolean(int index) Get item at index return as booleanbooleangetBoolean(String name) Get item at key return as booleanbytegetByte(int index) Get item at index return as bytebyteGet item at key return as bytegetDate(int index) Get item at index return as DateGet item at key return as DatedoublegetDouble(int index) Get item at index return as doubledoubleGet item at key return as doublefloatgetFloat(int index) Get item at index return as floatfloatGet item at key return as floatintgetInt(int index) Get item at index return as intintGet 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)longgetLong(int index) Get item at index return as longlongGet item at key return as longgetObject(int index) Get item at index return as AMFDataObjGet item at key return as AMFDataObjshortgetShort(int index) Get item at index return as shortshortGet item at key return as shortgetString(int index) Get item at index return as StringGet item at key return as StringvoidPut or replace boolean value at key (data will be wrapped in an AMFDataItem object)voidPut or replace double value at key (data will be wrapped in an AMFDataItem object)voidPut or replace int value at key (data will be wrapped in an AMFDataItem object)voidPut or replace long value at key (data will be wrapped in an AMFDataItem object)voidPut or replace object at keyvoidPut or replace string value at key (data will be wrapped in an AMFDataItem object)voidPut 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
-