/// <summary> /// Appends the specified object to the specified string buffer using the /// rules of this format. /// <para/> /// <paramref name="field"/> is an input/output parameter. If its <paramref name="field"/> /// member contains an enum value specifying a field on input, then its /// <c>BeginIndex</c> and <c>EndIndex</c> members will be updated with the /// text offset of the first occurrence of this field in the formatted text. /// </summary> /// <param name="obj">the object to format.</param> /// <param name="buffer">the string buffer where the formatted string is appended to.</param> /// <param name="field">on input: an optional alignment field; on output: the offsets /// of the alignment field in the formatted text.</param> /// <returns>The <see cref="StringBuffer"/>.</returns> /// <exception cref="ArgumentException">If the object cannot be formatted by this format.</exception> public abstract StringBuffer Format(object obj, StringBuffer buffer, FieldPosition field);
/// <summary> /// Appends the string associated with the range in which the specified <see cref="long"/> /// value fits to the specified string <paramref name="buffer"/>. /// </summary> /// <param name="value">The <see cref="long"/> to format.</param> /// <param name="buffer">The target string buffer to append the formatted value to.</param> /// <param name="field">A <see cref="FieldPosition"/> which is ignored.</param> /// <returns>The <see cref="StringBuffer"/>.</returns> //@Override public StringBuffer Format(long value, StringBuffer buffer, FieldPosition field) { return(Format((double)value, buffer, field)); }