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

123

/openjdk7/jdk/src/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...]
/openjdk7/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 DBasicBoolean.java52 Formatter f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
65 Formatter f = new Formatter(new StringBuilder(), Locale.US);
71 Formatter f = new Formatter(new StringBuilder(), Locale.US);
348 // Formatter.java class javadoc examples
H A DBasicBooleanObject.java52 Formatter f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
65 Formatter f = new Formatter(new StringBuilder(), Locale.US);
71 Formatter f = new Formatter(new StringBuilder(), Locale.US);
348 // Formatter.java class javadoc examples
H A DBasicChar.java52 Formatter f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
65 Formatter f = new Formatter(new StringBuilder(), Locale.US);
71 Formatter f = new Formatter(new StringBuilder(), Locale.US);
348 // Formatter.java class javadoc examples
H A DBasicCharObject.java52 Formatter f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
65 Formatter f = new Formatter(new StringBuilder(), Locale.US);
71 Formatter f = new Formatter(new StringBuilder(), Locale.US);
348 // Formatter.java class javadoc examples
H A DBasicBigInteger.java52 Formatter f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
65 Formatter f = new Formatter(new StringBuilder(), Locale.US);
71 Formatter f = new Formatter(new StringBuilder(), Locale.US);
348 // Formatter.java class javadoc examples
H A DBasicByte.java52 Formatter f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
65 Formatter f = new Formatter(new StringBuilder(), Locale.US);
71 Formatter f = new Formatter(new StringBuilder(), Locale.US);
348 // Formatter.java class javadoc examples
H A DBasicByteObject.java52 Formatter f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
65 Formatter f = new Formatter(new StringBuilder(), Locale.US);
71 Formatter f = new Formatter(new StringBuilder(), Locale.US);
348 // Formatter.java class javadoc examples
H A DBasicInt.java52 Formatter f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
65 Formatter f = new Formatter(new StringBuilder(), Locale.US);
71 Formatter f = new Formatter(new StringBuilder(), Locale.US);
348 // Formatter.java class javadoc examples
H A DBasicIntObject.java52 Formatter f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
65 Formatter f = new Formatter(new StringBuilder(), Locale.US);
71 Formatter f = new Formatter(new StringBuilder(), Locale.US);
348 // Formatter.java class javadoc examples
H A DBasicLong.java52 Formatter f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
65 Formatter f = new Formatter(new StringBuilder(), Locale.US);
71 Formatter f = new Formatter(new StringBuilder(), Locale.US);
348 // Formatter.java class javadoc examples
H A DBasicLongObject.java52 Formatter f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
65 Formatter f = new Formatter(new StringBuilder(), Locale.US);
71 Formatter f = new Formatter(new StringBuilder(), Locale.US);
348 // Formatter.java class javadoc examples
H A DBasicShort.java52 Formatter f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
65 Formatter f = new Formatter(new StringBuilder(), Locale.US);
71 Formatter f = new Formatter(new StringBuilder(), Locale.US);
348 // Formatter.java class javadoc examples
H A DBasicShortObject.java52 Formatter f = new Formatter(new StringBuilder(), Locale.US);
59 Formatter f = new Formatter(new StringBuilder(), l);
65 Formatter f = new Formatter(new StringBuilder(), Locale.US);
71 Formatter f = new Formatter(new StringBuilder(), Locale.US);
348 // Formatter.java class javadoc examples
/openjdk7/jdk/src/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.java40 * default values for the <tt>Handler</tt>'s <tt>Filter</tt>, <tt>Formatter</tt>,
52 private Formatter formatter;
63 * level of <tt>Level.ALL</tt>, no <tt>Formatter</tt>, and no
103 * Set a <tt>Formatter</tt>. This <tt>Formatter</tt> will be used
107 * which case the <tt>Formatter</tt> will be remembered, but not used.
109 * @param newFormatter the <tt>Formatter</tt> to use (may not be null)
113 public void setFormatter(Formatter newFormatter) throws SecurityException {
121 * Return the <tt>Formatter</tt> for this <tt>Handler</tt>.
122 * @return the <tt>Formatter</t
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/classbrowser/
H A DHTMLGenerator.java46 static class Formatter { class in class:HTMLGenerator
50 Formatter(boolean h) { method in class:HTMLGenerator.Formatter
70 void append(Formatter s) {
224 Formatter buf = new Formatter(genHTML);
247 Formatter buf = new Formatter(genHTML);
259 Formatter buf = new Formatter(genHTML);
266 Formatter bu
[all...]
/openjdk7/langtools/src/share/classes/com/sun/tools/apt/mirror/declaration/
H A DConstants.java69 static Formatter getFormatter() {
70 return new Formatter(new StringBuilder());
81 static Formatter getFormatter(StringBuilder buf) {
82 return new Formatter(buf);
92 static class Formatter { class in class:Constants
96 private Formatter(StringBuilder buf) { method in class:Constants.Formatter
/openjdk7/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);
/openjdk7/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/
H A DZipFileAttributes.java47 import java.util.Formatter;
141 Formatter fm = new Formatter(sb);
/openjdk7/jdk/make/tools/src/build/tools/charsetmapping/
H A DSBCS.java32 import java.util.Formatter;
64 Formatter out, String closure,
144 Formatter fm = new Formatter(b2cSB);
157 fm = new Formatter(b2cNRSB);
174 fm = new Formatter(c2bNRSB);

Completed in 7289 milliseconds

123