Class IntegerFormatter.Traditional

All Implemented Interfaces:
Appendable
Enclosing class:
IntegerFormatter

public static class IntegerFormatter.Traditional extends IntegerFormatter
A minor variation on IntegerFormatter to handle "traditional" %-formatting. The difference is in support for spec.precision, the formatting octal in "alternate" mode (0 and 0123, not 0o0 and 0o123), and in c-format (in the error logic).
  • Constructor Details

    • Traditional

      public Traditional(StringBuilder result, InternalFormat.Spec spec)
      Construct the formatter from a client-supplied buffer, to which the result will be appended, and a specification. Sets InternalFormat.Formatter.mark to the end of the buffer.
      Parameters:
      result - destination buffer
      spec - parsed conversion specification
    • Traditional

      public Traditional(InternalFormat.Spec spec)
      Construct the formatter from a specification, allocating a buffer internally for the result.
      Parameters:
      spec - parsed conversion specification