Class ICUResourceBundleImpl.ResourceArray

Enclosing class:
ICUResourceBundleImpl

static class ICUResourceBundleImpl.ResourceArray extends ICUResourceBundleImpl.ResourceContainer
  • Constructor Details

  • Method Details

    • getType

      public int getType()
      Description copied from class: UResourceBundle
      Returns the type of a resource. Available types are INT, ARRAY, BINARY, INT_VECTOR, STRING, TABLE.
      Overrides:
      getType in class UResourceBundle
      Returns:
      type of the given resource.
    • handleGetStringArray

      protected String[] handleGetStringArray()
      Description copied from class: UResourceBundle
      Actual worker method for fetching the array of strings in a resource. Sub classes must override this method if they support arrays of strings.
      Overrides:
      handleGetStringArray in class UResourceBundle
      Returns:
      String[] An array of strings containing strings
    • getStringArray

      public String[] getStringArray()
      Description copied from class: UResourceBundle
      Returns a string array from a array resource type
      Overrides:
      getStringArray in class UResourceBundle
      Returns:
      a string
      See Also:
    • handleGet

      protected UResourceBundle handleGet(String indexStr, HashMap<String,String> aliasesVisited, UResourceBundle requested)
      Description copied from class: UResourceBundle
      Actual worker method for fetching a resource based on the given key. Sub classes must override this method if they support resources with keys.
      Overrides:
      handleGet in class UResourceBundle
      Parameters:
      indexStr - the key string of the resource to be fetched
      aliasesVisited - hashtable object to hold references of resources already seen
      requested - the original resource bundle object on which the get method was invoked. The requested bundle and the bundle on which this method is invoked are the same, except in the cases where aliases are involved.
      Returns:
      UResourceBundle a resource associated with the key
    • handleGet

      protected UResourceBundle handleGet(int index, HashMap<String,String> aliasesVisited, UResourceBundle requested)
      Description copied from class: UResourceBundle
      Actual worker method for fetching a resource based on the given index. Sub classes must override this method if they support arrays of resources.
      Overrides:
      handleGet in class UResourceBundle
      Parameters:
      index - the index of the resource to be fetched
      aliasesVisited - hashtable object to hold references of resources already seen
      requested - the original resource bundle object on which the get method was invoked. The requested bundle and the bundle on which this method is invoked are the same, except in the cases where aliases are involved.
      Returns:
      UResourceBundle a resource associated with the index