Searched refs:Formatter (Results 1 - 25 of 96) sorted by relevance

1234

/openjdk10/jdk/src/java.base/share/classes/java/util/
H A DFormattable.java33 * specifier of {@link java.util.Formatter}. This interface allows basic
41 * import java.util.Formatter;
57 * public void formatTo(Formatter fmt, int f, int width, int precision) {
94 * <p> When used in conjunction with the {@link java.util.Formatter}, the above
98 * Formatter fmt = new Formatter();
122 * Formats the object using the provided {@link Formatter formatter}.
125 * The {@link Formatter formatter}. Implementing classes may call
126 * {@link Formatter#out() formatter.out()} or {@link
127 * Formatter#local
[all...]
/openjdk10/jdk/test/java/util/Formatter/
H A DConstructors.java60 static void locale(Formatter f) {
64 static void locale(Formatter f, Locale l) {
75 static void out(Formatter f, Class c) {
88 // Formatter()
89 try (Formatter f = new Formatter()) {
94 fail("new Formatter()", x);
97 // Formatter(Appendable a)
98 try (Formatter f = new Formatter((Appendabl
[all...]
H A DClose.java31 import java.util.Formatter;
63 private static void test(Formatter f) {
77 // Formatter is a Closeable
79 throw new RuntimeException("Formatter is not a Closeable");
93 test(new Formatter(new C()));
95 test(new Formatter(new NC()));
H A DFlush.java32 import java.util.Formatter;
66 private static void test(Formatter f) {
80 // Formatter is a Flushable
82 throw new RuntimeException("Formatter is not a Flushable");
96 test(new Formatter(new F()));
98 test(new Formatter(new NF()));
H A DFailingConstructors.java27 * @summary PrintStream, PrintWriter, Formatter, Scanner leave files open when
38 import java.util.Formatter;
58 /* Formatter(File file, String csn) */
60 new Formatter(file, UNSUPPORTED_CHARSET);
69 new Formatter(file, null);
77 /* Formatter(String fileName, String csn) */
79 new Formatter(file.getName(), UNSUPPORTED_CHARSET);
88 new Formatter(file.getName(), null);
H A DBasicCharObject.java48 Formatter f = new Formatter(new StringBuilder(), Locale.US);
52 f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
63 f = new Formatter(new StringBuilder(), l);
69 Formatter f = new Formatter(new StringBuilder(), Locale.US);
75 Formatter f = new Formatter(ne
[all...]
H A DBasicChar.java48 Formatter f = new Formatter(new StringBuilder(), Locale.US);
52 f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
63 f = new Formatter(new StringBuilder(), l);
69 Formatter f = new Formatter(new StringBuilder(), Locale.US);
75 Formatter f = new Formatter(ne
[all...]
H A DBasicBooleanObject.java48 Formatter f = new Formatter(new StringBuilder(), Locale.US);
52 f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
63 f = new Formatter(new StringBuilder(), l);
69 Formatter f = new Formatter(new StringBuilder(), Locale.US);
75 Formatter f = new Formatter(ne
[all...]
H A DBasicBoolean.java48 Formatter f = new Formatter(new StringBuilder(), Locale.US);
52 f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
63 f = new Formatter(new StringBuilder(), l);
69 Formatter f = new Formatter(new StringBuilder(), Locale.US);
75 Formatter f = new Formatter(ne
[all...]
H A DFormatLocale.java37 import java.util.Formatter;
76 new Formatter(sb).format(conversions.get(i), src.get(i));
79 "Wrong uppercasing with Formatter.format(" +
97 Formatter f = new Formatter(sb, (Locale)null);
H A DNullArg.java30 import java.util.Formatter;
H A DBasicByte.java48 Formatter f = new Formatter(new StringBuilder(), Locale.US);
52 f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
63 f = new Formatter(new StringBuilder(), l);
69 Formatter f = new Formatter(new StringBuilder(), Locale.US);
75 Formatter f = new Formatter(ne
[all...]
H A DBasicByteObject.java48 Formatter f = new Formatter(new StringBuilder(), Locale.US);
52 f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
63 f = new Formatter(new StringBuilder(), l);
69 Formatter f = new Formatter(new StringBuilder(), Locale.US);
75 Formatter f = new Formatter(ne
[all...]
H A DBasicBigInteger.java48 Formatter f = new Formatter(new StringBuilder(), Locale.US);
52 f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
63 f = new Formatter(new StringBuilder(), l);
69 Formatter f = new Formatter(new StringBuilder(), Locale.US);
75 Formatter f = new Formatter(ne
[all...]
/openjdk10/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.runtime/src/jdk/vm/ci/runtime/
H A DJVMCI.java25 import java.util.Formatter;
46 Formatter errorMessage = new Formatter();
/openjdk10/jdk/src/java.logging/share/classes/java/util/logging/
H A DFormatter.java30 * A Formatter provides support for formatting LogRecords.
32 * Typically each logging Handler will have a Formatter associated
33 * with it. The Formatter takes a LogRecord and converts it to
43 public abstract class Formatter { class
48 protected Formatter() { method in class:Formatter
56 * It is recommended to use the {@link Formatter#formatMessage}
94 * method is provided as a convenience for Formatter subclasses to
H A DHandler.java44 * default values for the {@code Handler}'s {@code Filter}, {@code Formatter},
64 private volatile Formatter formatter;
71 * level of {@code Level.ALL}, no {@code Formatter}, and no
85 * @param defaultFormatter a default {@link Formatter} to configure if one is
90 Handler(Level defaultLevel, Formatter defaultFormatter,
91 Formatter specifiedFormatter) {
98 final Formatter formatter = specifiedFormatter == null
157 * Set a {@code Formatter}. This {@code Formatter} will be used
161 * which case the {@code Formatter} wil
[all...]
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.api.test/src/org/graalvm/compiler/api/test/
H A DGraal.java25 import java.util.Formatter;
70 Formatter errorMessage = new Formatter();
/openjdk10/langtools/src/jdk.jdeps/share/classes/com/sun/tools/jdeprscan/scan/
H A DCPEntries.java29 import java.util.Formatter;
64 Formatter f = new Formatter(sb, Locale.getDefault());
/openjdk10/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/ui/classbrowser/
H A DHTMLGenerator.java40 static class Formatter { class in class:HTMLGenerator
44 Formatter(boolean h) { method in class:HTMLGenerator.Formatter
64 void append(Formatter s) {
184 Formatter buf = new Formatter(genHTML);
207 Formatter buf = new Formatter(genHTML);
219 Formatter buf = new Formatter(genHTML);
226 Formatter bu
[all...]
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/
H A DJVMCIVersionCheck.java25 import java.util.Formatter;
43 Formatter errorMessage = new Formatter().format(reason, args);
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.options/src/org/graalvm/compiler/options/
H A DOptionKey.java25 import java.util.Formatter;
64 Formatter buf = new Formatter();
/openjdk10/jdk/src/java.base/share/classes/jdk/internal/jrtfs/
H A DJrtFileAttributes.java29 import java.util.Formatter;
118 try (Formatter fm = new Formatter(sb)) {
/openjdk10/jdk/test/java/util/Formattable/
H A DStockName.java30 import java.util.Formatter;
46 public void formatTo(Formatter fmt, int f, int width, int precision) {
85 Formatter fmt = new Formatter(cb);
/openjdk10/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/
H A DHotSpotMethod.java30 import java.util.Formatter;
76 public void formatTo(Formatter formatter, int flags, int width, int precision) {

Completed in 181 milliseconds

1234