Extensions to standard Java I/O (
Format. Many classes defined in this package are filters applying on-the-fly formatting while writing text to the output device. For example
LineAppendercan wrap lines to some maximal line length (e.g. 80 characters), and
TableAppenderreplaces all occurrence of
'\t'by the amount of spaces needed for producing a tabular output.
Note: One of the formatter classes defined in this package is a
java.text.Formatsubclass. While traditionally though as part of
Formatis defined in this I/O package because it can format to an
Appendableand for consistency with the
Unicode charactersSome formatters in this package make extensive use of Unicode characters. This may produce unexpected results in a Windows console, unless the underlying output stream uses the correct encoding (e.g.
new OutputStreamWriter(System.out, "Cp437")). To display the appropriate code page for a Windows console, type
chcpon the command line.
Supplementary Unicode charactersThis package can handle the Unicode supplementary characters.
Defined in the
ClassDescriptionBase class of
Formatimplementations which delegate part of their work to other
Formatinstances.Thrown when an input stream or a channel can not modify its position to the given value.Utilities methods working on
Appendablewhich can apply different kinds of reformatting that depend on the End Of Line (EOL) occurrences.An
Appendablewhich formats the text as a table suitable for displaying in devices using a monospaced font.Base class for parser and formatter of tabular data, providing control on line and column separators.