Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.log4j.helpers
Class AbsoluteTimeDateFormat  view AbsoluteTimeDateFormat download AbsoluteTimeDateFormat.java

java.lang.Object
  extended byjava.text.Format
      extended byjava.text.DateFormat
          extended byorg.apache.log4j.helpers.AbsoluteTimeDateFormat
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
DateTimeDateFormat, ISO8601DateFormat

public class AbsoluteTimeDateFormat
extends java.text.DateFormat

Formats a java.util.Date in the format "HH:mm:ss,SSS" for example, "15:49:37,459".

Since:
0.7.5

Nested Class Summary
 
Nested classes inherited from class java.text.DateFormat
java.text.DateFormat.Field
 
Field Summary
static java.lang.String ABS_TIME_DATE_FORMAT
          String constant used to specify AbsoluteTimeDateFormat in layouts.
static java.lang.String DATE_AND_TIME_DATE_FORMAT
          String constant used to specify DateTimeDateFormat in layouts.
static java.lang.String ISO8601_DATE_FORMAT
          String constant used to specify ISO8601DateFormat in layouts.
private static long previousTime
           
private static char[] previousTimeWithoutMillis
           
 
Fields inherited from class java.text.DateFormat
AM_PM_FIELD, calendar, DATE_FIELD, DAY_OF_WEEK_FIELD, DAY_OF_WEEK_IN_MONTH_FIELD, DAY_OF_YEAR_FIELD, DEFAULT, ERA_FIELD, EXTENDED_YEAR_FIELD, FULL, HOUR_OF_DAY0_FIELD, HOUR_OF_DAY1_FIELD, HOUR0_FIELD, HOUR1_FIELD, ISO_YEAR_FIELD, LOCALIZED_DAY_OF_WEEK_FIELD, LONG, MEDIUM, MILLISECOND_FIELD, MILLISECOND_IN_DAY_FIELD, MINUTE_FIELD, MODIFIED_JULIAN_DAY_FIELD, MONTH_FIELD, numberFormat, RFC822_TIMEZONE_FIELD, SECOND_FIELD, SHORT, TIMEZONE_FIELD, WEEK_OF_MONTH_FIELD, WEEK_OF_YEAR_FIELD, YEAR_FIELD
 
Constructor Summary
AbsoluteTimeDateFormat()
           
AbsoluteTimeDateFormat(java.util.TimeZone timeZone)
           
 
Method Summary
 java.lang.StringBuffer format(java.util.Date date, java.lang.StringBuffer sbuf, java.text.FieldPosition fieldPosition)
          Appends to sbuf the time in the format "HH:mm:ss,SSS" for example, "15:49:37,459"
 java.util.Date parse(java.lang.String s, java.text.ParsePosition pos)
          This method does not do anything but return null.
 
Methods inherited from class java.text.DateFormat
clone, equals, format, format, getAvailableLocales, getCalendar, getDateInstance, getDateInstance, getDateInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getInstance, getNumberFormat, getTimeInstance, getTimeInstance, getTimeInstance, getTimeZone, hashCode, isLenient, parse, parseObject, setCalendar, setLenient, setNumberFormat, setTimeZone
 
Methods inherited from class java.text.Format
format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ABS_TIME_DATE_FORMAT

public static final java.lang.String ABS_TIME_DATE_FORMAT
String constant used to specify AbsoluteTimeDateFormat in layouts. Current value is ABSOLUTE.

See Also:
Constant Field Values

DATE_AND_TIME_DATE_FORMAT

public static final java.lang.String DATE_AND_TIME_DATE_FORMAT
String constant used to specify DateTimeDateFormat in layouts. Current value is DATE.

See Also:
Constant Field Values

ISO8601_DATE_FORMAT

public static final java.lang.String ISO8601_DATE_FORMAT
String constant used to specify ISO8601DateFormat in layouts. Current value is ISO8601.

See Also:
Constant Field Values

previousTime

private static long previousTime

previousTimeWithoutMillis

private static char[] previousTimeWithoutMillis
Constructor Detail

AbsoluteTimeDateFormat

public AbsoluteTimeDateFormat()

AbsoluteTimeDateFormat

public AbsoluteTimeDateFormat(java.util.TimeZone timeZone)
Method Detail

format

public java.lang.StringBuffer format(java.util.Date date,
                                     java.lang.StringBuffer sbuf,
                                     java.text.FieldPosition fieldPosition)
Appends to sbuf the time in the format "HH:mm:ss,SSS" for example, "15:49:37,459"


parse

public java.util.Date parse(java.lang.String s,
                            java.text.ParsePosition pos)
This method does not do anything but return null.