Interface IAMFDataObj

All Known Implementing Classes:
AMFDataMixedArray, AMFDataObj

public interface IAMFDataObj
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Return true if the object/array contains key
    get(int index)
    Return the object at a particular index.
    get(String name)
    Return the object at a particular key.
    boolean
    getBoolean(int index)
    Get item at index return as boolean
    boolean
    Get item at key return as boolean
    byte
    getByte(int index)
    Get item at index return as byte
    byte
    Get item at key return as byte
    getDate(int index)
    Get item at index return as Date
    Get item at key return as Date
    double
    getDouble(int index)
    Get item at index return as double
    double
    Get item at key return as double
    float
    getFloat(int index)
    Get item at index return as float
    float
    Get item at key return as float
    int
    getInt(int index)
    Get item at index return as int
    int
    getInt(String name)
    Get item at key return as int
    getKey(int index)
    Return the key at a particular index.
    Return a list of all the keys (the list is a copy)
    long
    getLong(int index)
    Get item at index return as long
    long
    Get item at key return as long
    getObject(int index)
    Get item at index return as AMFDataObj
    Get item at key return as AMFDataObj
    short
    getShort(int index)
    Get item at index return as short
    short
    Get item at key return as short
    getString(int index)
    Get item at index return as String
    Get item at key return as String
    void
    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 key
    void
    put(String name, String data)
    Put or replace string value at key (data will be wrapped in an AMFDataItem object)
    void
    put(String name, Date data)
    Put or replace date value at key (data will be wrapped in an AMFDataItem object)
    remove(int index)
    Remove element by index
    remove(String name)
    Remove element by key
  • Method Details

    • 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 - key
      data - 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 - key
      data - 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 - key
      data - 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 - key
      data - 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 - key
      data - long value
    • put

      void put(String name, Date data)
      Put or replace date value at key (data will be wrapped in an AMFDataItem object)
      Parameters:
      name - key
      data - 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 - key
      data - 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

      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

      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

      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