Lines Matching defs:Formatter

40  * It's relatively rare to use a {@code Formatter} directly. A variety of classes offer convenience
300 * It's also possible to format dates and times with {@code Formatter}, though you should seriously
303 * The facilities offered by {@code Formatter} are low-level and place the burden of localization
519 * <p><i>Thread safety</i>. Formatter is not thread-safe.
526 public final class Formatter implements Closeable, Flushable {
596 * Constructs a {@code Formatter}.
604 public Formatter() {
609 * Constructs a {@code Formatter} whose output will be written to the
616 * the output destination of the {@code Formatter}. If {@code a} is {@code null},
619 public Formatter(Appendable a) {
624 * Constructs a {@code Formatter} with the specified {@code Locale}.
630 * the {@code Locale} of the {@code Formatter}. If {@code l} is {@code null},
633 public Formatter(Locale l) {
638 * Constructs a {@code Formatter} with the specified {@code Locale}
643 * the output destination of the {@code Formatter}. If {@code a} is {@code null},
646 * the {@code Locale} of the {@code Formatter}. If {@code l} is {@code null},
649 public Formatter(Appendable a, Locale l) {
659 * Constructs a {@code Formatter} whose output is written to the specified file.
661 * <p>The charset of the {@code Formatter} is the default charset.
668 * destination for the {@code Formatter}. The file will be truncated to
670 * created. The output of the {@code Formatter} is buffered.
676 public Formatter(String fileName) throws FileNotFoundException {
682 * Constructs a {@code Formatter} whose output is written to the specified file.
689 * destination for the {@code Formatter}. The file will be truncated to
691 * created. The output of the {@code Formatter} is buffered.
693 * the name of the charset for the {@code Formatter}.
701 public Formatter(String fileName, String csn) throws FileNotFoundException,
707 * Constructs a {@code Formatter} with the given {@code Locale} and charset,
712 * destination for the {@code Formatter}. The file will be truncated to
714 * created. The output of the {@code Formatter} is buffered.
716 * the name of the charset for the {@code Formatter}.
718 * the {@code Locale} of the {@code Formatter}. If {@code l} is {@code null},
727 public Formatter(String fileName, String csn, Locale l)
734 * Constructs a {@code Formatter} whose output is written to the specified {@code File}.
736 * The charset of the {@code Formatter} is the default charset.
743 * {@code Formatter}. The {@code File} will be truncated to zero size if the {@code File}
745 * {@code Formatter} is buffered.
751 public Formatter(File file) throws FileNotFoundException {
756 * Constructs a {@code Formatter} with the given charset,
764 * {@code Formatter}. The {@code File} will be truncated to zero size if the {@code File}
766 * {@code Formatter} is buffered.
768 * the name of the charset for the {@code Formatter}.
776 public Formatter(File file, String csn) throws FileNotFoundException,
782 * Constructs a {@code Formatter} with the given {@code Locale} and charset,
787 * {@code Formatter}. The {@code File} will be truncated to zero size if the {@code File}
789 * {@code Formatter} is buffered.
791 * the name of the charset for the {@code Formatter}.
793 * the {@code Locale} of the {@code Formatter}. If {@code l} is {@code null},
802 public Formatter(File file, String csn, Locale l)
820 * Constructs a {@code Formatter} whose output is written to the specified {@code OutputStream}.
822 * <p>The charset of the {@code Formatter} is the default charset.
828 * the stream to be used as the destination of the {@code Formatter}.
830 public Formatter(OutputStream os) {
836 * Constructs a {@code Formatter} with the given charset,
843 * the stream to be used as the destination of the {@code Formatter}.
845 * the name of the charset for the {@code Formatter}.
849 public Formatter(OutputStream os, String csn) throws UnsupportedEncodingException {
854 * Constructs a {@code Formatter} with the given {@code Locale} and charset,
858 * the stream to be used as the destination of the {@code Formatter}.
860 * the name of the charset for the {@code Formatter}.
862 * the {@code Locale} of the {@code Formatter}. If {@code l} is {@code null},
867 public Formatter(OutputStream os, String csn, Locale l) throws UnsupportedEncodingException {
873 * Constructs a {@code Formatter} whose output is written to the specified {@code PrintStream}.
875 * <p>The charset of the {@code Formatter} is the default charset.
881 * the {@code PrintStream} used as destination of the {@code Formatter}. If
885 public Formatter(PrintStream ps) {
900 * Returns the {@code Locale} of the {@code Formatter}.
902 * @return the {@code Locale} for the {@code Formatter} or {@code null} for no {@code Locale}.
904 * if the {@code Formatter} has been closed.
912 * Returns the output destination of the {@code Formatter}.
914 * @return the output destination of the {@code Formatter}.
916 * if the {@code Formatter} has been closed.
930 * if the {@code Formatter} has been closed.
939 * Flushes the {@code Formatter}. If the output destination is {@link Flushable},
943 * if the {@code Formatter} has been closed.
957 * Closes the {@code Formatter}. If the output destination is {@link Closeable},
960 * If the {@code Formatter} has been closed, then calling the this method will have no
964 * {@code Formatter} has been closed will raise a {@code FormatterClosedException}.
980 * Returns the last {@code IOException} thrown by the {@code Formatter}'s output
984 * @return the last {@code IOException} thrown by the {@code Formatter}'s output
992 * Writes a formatted string to the output destination of the {@code Formatter}.
1000 * @return this {@code Formatter}.
1006 * if the {@code Formatter} has been closed.
1008 public Formatter format(String format, Object... args) {
1013 * Writes a formatted string to the output destination of the {@code Formatter}.
1018 * parameter does not change this Formatter's default {@code Locale}
1027 * @return this {@code Formatter}.
1033 * if the {@code Formatter} has been closed.
1035 public Formatter format(Locale l, String format, Object... args) {
1510 * size, but you can't access that from Formatter, and the default is every 3 digits.