Example usage for Java java.util Formatter fields, constructors, methods, implement or subclass
The text is from its open source code.
Formatter() Constructs a new formatter. | |
Formatter(Appendable a) Constructs a new formatter with the specified destination. | |
Formatter(Locale l) Constructs a new formatter with the specified locale. | |
Formatter(String fileName) Constructs a new formatter with the specified file name. | |
Formatter(File file) Constructs a new formatter with the specified file. | |
Formatter(PrintStream ps) Constructs a new formatter with the specified print stream. | |
Formatter(OutputStream os) Constructs a new formatter with the specified output stream. | |
Formatter(Locale l, Appendable a) | |
Formatter(Appendable a, Locale l) Constructs a new formatter with the specified destination and locale. | |
Formatter(String fileName, String csn) Constructs a new formatter with the specified file name and charset. | |
Formatter(File file, String csn) Constructs a new formatter with the specified file and charset. | |
Formatter(OutputStream os, String csn) Constructs a new formatter with the specified output stream and charset. | |
Formatter(Charset charset, Locale l, File file) | |
Formatter(String fileName, String csn, Locale l) Constructs a new formatter with the specified file name, charset, and locale. | |
Formatter(String fileName, Charset charset, Locale l) Constructs a new formatter with the specified file name, charset, and locale. | |
Formatter(File file, String csn, Locale l) Constructs a new formatter with the specified file, charset, and locale. | |
Formatter(File file, Charset charset, Locale l) Constructs a new formatter with the specified file, charset, and locale. | |
Formatter(OutputStream os, String csn, Locale l) Constructs a new formatter with the specified output stream, charset, and locale. | |
Formatter(OutputStream os, Charset charset, Locale l) Constructs a new formatter with the specified output stream, charset, and locale. |
void | close() Closes this formatter. |
void | flush() Flushes this formatter. |
Formatter | format(Locale l, String format, Object... args) Writes a formatted string to this object's destination using the specified locale, format string, and arguments. |
Formatter | format(String format, Object... args) Writes a formatted string to this object's destination using the specified format string and arguments. |
IOException | ioException() Returns the IOException last thrown by this formatter's Appendable . |
Locale | locale() Returns the locale set by the construction of this formatter. |
Appendable | out() Returns the destination for the output. |
String | toString() Returns the result of invoking toString() on the destination for the output. |