Save This Page
Home » slf4j-1.5.5 » org.apache » log4j » lf5 » util » [javadoc | source]
org.apache.log4j.lf5.util
public class: DateFormatManager [javadoc | source]
java.lang.Object
   org.apache.log4j.lf5.util.DateFormatManager
Date format manager. Utility class to help manage consistent date formatting and parsing. It may be advantageous to have multiple DateFormatManagers per application. For example, one for handling the output (formatting) of dates, and another one for handling the input (parsing) of dates.
Constructor:
 public DateFormatManager() 
 public DateFormatManager(TimeZone timeZone) 
 public DateFormatManager(Locale locale) 
 public DateFormatManager(String pattern) 
 public DateFormatManager(TimeZone timeZone,
    Locale locale) 
 public DateFormatManager(TimeZone timeZone,
    String pattern) 
 public DateFormatManager(Locale locale,
    String pattern) 
 public DateFormatManager(TimeZone timeZone,
    Locale locale,
    String pattern) 
Method from org.apache.log4j.lf5.util.DateFormatManager Summary:
format,   format,   getDateFormatInstance,   getLocale,   getOutputFormat,   getPattern,   getTimeZone,   parse,   parse,   setDateFormatInstance,   setLocale,   setOutputFormat,   setPattern,   setTimeZone
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.lf5.util.DateFormatManager Detail:
 public String format(Date date) 
 public String format(Date date,
    String pattern) 
 public synchronized DateFormat getDateFormatInstance() 
 public synchronized Locale getLocale() 
 public synchronized String getOutputFormat() 
Deprecated! Use - getPattern().

    This method has been deprecated in favour of getPattern().
 public synchronized String getPattern() 
 public synchronized TimeZone getTimeZone() 
 public Date parse(String date) throws ParseException 
 public Date parse(String date,
    String pattern) throws ParseException 
 public synchronized  void setDateFormatInstance(DateFormat dateFormat) 
 public synchronized  void setLocale(Locale locale) 
 public synchronized  void setOutputFormat(String pattern) 
Deprecated! Use - setPattern().

    This method has been deprecated in favour of setPattern().
 public synchronized  void setPattern(String pattern) 
    Set the pattern. i.e. "EEEEE, MMMMM d, yyyy hh:mm aaa"
 public synchronized  void setTimeZone(TimeZone timeZone)