/**
   * A convinience method to format patterns.
   *
   * @param aPattern The pattern used when formatting.
   * @param arguments The array containing the objects to be formatted.
   */
  public AttributedCharacterIterator formatToCharacterIterator(Object arguments) {
    Object[] arguments_array = (Object[]) arguments;
    FormatCharacterIterator iterator = new FormatCharacterIterator();

    formatInternal(arguments_array, new StringBuffer(), null, iterator);

    return iterator;
  }
 /**
  * A convinience method to format patterns.
  *
  * @param aPattern The pattern used when formatting.
  * @param arguments The array containing the objects to be formatted.
  */
 public static String format(String pattern, Object arguments[]) {
   MessageFormat mf = new MessageFormat(pattern);
   StringBuffer sb = new StringBuffer();
   FieldPosition fp = new FieldPosition(NumberFormat.INTEGER_FIELD);
   return mf.formatInternal(arguments, sb, fp, null).toString();
 }