public static class IntegerFormatter.Traditional extends IntegerFormatter
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).IntegerFormatter.TraditionalBIN, HEX, OCT| Constructor and Description |
|---|
Traditional(InternalFormat.Spec spec)
Construct the formatter from a specification, allocating a buffer internally for the
result.
|
Traditional(StringBuilder result,
InternalFormat.Spec spec)
Construct the formatter from a client-supplied buffer, to which the result will be
appended, and a specification.
|
append, append, append, bin, format, format, formatNumberalignmentNotAllowed, alternateFormNotAllowed, alternateFormNotAllowed, getPyResult, getResult, isBytes, notAllowed, notAllowed, pad, precisionNotAllowed, precisionTooLarge, setBytes, setStart, signNotAllowed, toString, unknownFormat, zeroPaddingNotAllowedpublic Traditional(StringBuilder result, InternalFormat.Spec spec)
InternalFormat.Formatter.mark to the end of the buffer.result - destination bufferspec - parsed conversion specificationpublic Traditional(InternalFormat.Spec spec)
spec - parsed conversion specification