/javamail/logging/src/main/java/ |
H A D | SummaryFormatter.java | 49 private final CompactFormatter format; field in class:SummaryFormatter 59 format = new CompactFormatter("[%4$s]\t%5$s %6$s%n"); 62 + "{8,time,EEE, MMM dd HH:mm:ss:S ZZZ yyyy}\n", format, null); 74 return format.getHead(h); 84 public String format(LogRecord record) { method in class:SummaryFormatter 85 String data = format.format(record); 86 footer.format(record); //Track record times for footer. 98 format.getTail(h);
|
/javamail/mail/src/main/java/com/sun/mail/imap/protocol/ |
H A D | INTERNALDATE.java | 72 * class will parse dates in INTERNALDATE format as well as 73 * dates in RFC 822 format. 115 public static String format(Date d) { method in class:INTERNALDATE 129 df.format(d, sb, new FieldPosition(0));
|
/javamail/mail/src/main/java/com/sun/mail/util/logging/ |
H A D | CollectorFormatter.java | 77 * <li><formatter-name>.format the
78 * {@linkplain java.text.MessageFormat MessageFormat} string used to format the
85 * to format the collected LogRecord. (defaults to {@linkplain CompactFormatter})
98 * The message format string used as the formatted output.
102 * The formatter used to format the chosen log record.
106 * The comparator used to pick the log record to format.
152 * Creates the formatter using the given format.
154 * @param format the message format or null to use the LogManager default.
160 public CollectorFormatter(String format) {
argument 180 CollectorFormatter(String format, Formatter f, Comparator<? super LogRecord> c) argument 198 public String format(final LogRecord record) { method in class:CollectorFormatter [all...] |
H A D | CompactFormatter.java | 50 * {@linkplain #toAlternate(java.lang.String) alternate} fixed width format.
59 * <li><formatter-name>.format - the {@linkplain java.util.Formatter
60 * format} string used to transform the output. The format string can be
91 * Creates an instance with a default format pattern.
99 * Creates an instance with the given format pattern.
101 * @param format the {@linkplain java.util.Formatter pattern} or null to use
103 * {@linkplain #format(java.util.logging.LogRecord) format} method.
105 public CompactFormatter(final String format) {
argument 227 public String format(final LogRecord record) { method in class:CompactFormatter [all...] |
H A D | MailHandler.java | 167 * <tt>Formatter</tt> class used to format the body of this message. 449 * The maximum number of log records to format per email. 511 * getHead, format, and getTail methods are only called if one or more 519 * all of the format calls, plus one getTail call. 699 + head(f) + format(f, record) + tail(f, ""); 1074 * Set a <tt>Formatter</tt>. This <tt>Formatter</tt> will be used to format 1180 * capacity is reached, <tt>Handler</tt> will format all <tt>LogRecord</tt> 1461 * Sets the attachment file name formatters. The format method of each 1463 * passed its attachment filter during formatting. The format method will 1464 * typically return an empty string. Instead of being used to format 1558 setSubject(final Formatter format) argument 3774 private String format(final Formatter f, final LogRecord r) { method in class:MailHandler 4330 public final String format(LogRecord record) { method in class:MailHandler.TailNameFormatter [all...] |
/javamail/mail/src/main/java/javax/mail/internet/ |
H A D | MailDateFormat.java | 63 * This class does not support methods that influence the format. It always 140 * It is recommended to create separate format instances for each thread. 141 * If multiple threads access a format concurrently, it must be synchronized 161 * Create a new date format for the RFC2822 specification with lenient 207 * Formats the given date in the format specified by 217 public StringBuffer format(Date date, StringBuffer dateStrBuf, method in class:MailDateFormat 219 return super.format(date, dateStrBuf, fieldPosition); 223 * Parses the given date in the format specified by 267 * be used because RFC 2822 mandates a specific number format. 338 * be used because RFC 2822 mandates specific date format symbol [all...] |
/javamail/mail/src/test/java/com/sun/mail/util/logging/ |
H A D | LogManagerPropertiesTest.java | 1340 public String format(LogRecord record) { method in class:LogManagerPropertiesTest.ErrorFormatter
|
H A D | MailHandlerTest.java | 1695 public String format(LogRecord r) { 1724 public String format(LogRecord r) { 1753 public String format(LogRecord r) { 1782 public String format(LogRecord r) { 2508 public String format(LogRecord record) { 3245 assertEquals(instance.getCapacity(), formatter.format); 3971 Formatter format = new SimpleFormatter(); 3986 instance.setSubject(format); 3987 assertEquals(format, instance.getSubject()); 4025 assertTrue("No format erro 7054 public String format(LogRecord record) { method in class:MailHandlerTest.ThrowFormatter 7210 int format; field in class:MailHandlerTest.CountingFormatter 7219 public String format(LogRecord record) { method in class:MailHandlerTest.CountingFormatter 7249 public String format(LogRecord record) { method in class:MailHandlerTest.HeadFormatter 7283 public String format(LogRecord r) { method in class:MailHandlerTest.EmptyFormatter 7401 public String format(LogRecord record) { method in class:MailHandlerTest.ErrorFormatter 7487 public String format(LogRecord record) { method in class:MailHandlerTest.InitFormatter 7531 public String format(LogRecord lr) { method in class:MailHandlerTest.InternFilterFormatterComparator 7613 public String format(LogRecord lr) { method in class:MailHandlerTest.InternFilterFormatter 7646 public String format(LogRecord lr) { method in class:MailHandlerTest.InternFormatter 7694 public String format(LogRecord record) { method in class:MailHandlerTest.StaticInitReFormatter 7706 public String format(LogRecord record) { method in class:MailHandlerTest.StaticInitReSubjectFormatter 7718 public String format(LogRecord record) { method in class:MailHandlerTest.StaticInitReAttachFormatter 7730 public String format(LogRecord record) { method in class:MailHandlerTest.StaticInitReNameFormatter 7800 public String format(LogRecord record) { method in class:MailHandlerTest.StaticInitErFormatter 7812 public String format(LogRecord record) { method in class:MailHandlerTest.StaticInitErSubjectFormatter 7824 public String format(LogRecord record) { method in class:MailHandlerTest.StaticInitErAttachFormatter 7836 public String format(LogRecord record) { method in class:MailHandlerTest.StaticInitErNameFormatter 7872 public String format(LogRecord lr) { method in class:MailHandlerTest.LevelCheckingFormatter 8236 private final String format; field in class:MailHandlerTest.ClassLoaderFilterFormatter 8247 ClassLoaderFilterFormatter(final ClassLoader expect, String format) argument 8265 public String format(final LogRecord lr) { method in class:MailHandlerTest.ClassLoaderFilterFormatter [all...] |