Build 1.0_r1(from source)

org.apache.http.impl.cookie
Class DateUtils.DateFormatHolder

java.lang.Object
  extended by org.apache.http.impl.cookie.DateUtils.DateFormatHolder
Enclosing class:
DateUtils

static final class DateUtils.DateFormatHolder
extends Object

A factory for SimpleDateFormats. The instances are stored in a threadlocal way because SimpleDateFormat is not threadsafe as noted in its javadoc.


Constructor Summary
DateUtils.DateFormatHolder()
           
 
Method Summary
static SimpleDateFormat formatFor(String pattern)
          creates a SimpleDateFormat for the requested format string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateUtils.DateFormatHolder

DateUtils.DateFormatHolder()
Method Detail

formatFor

public static SimpleDateFormat formatFor(String pattern)
creates a SimpleDateFormat for the requested format string.

Parameters:
pattern - a non-null format String according to SimpleDateFormat. The format is not checked against null since all paths go through DateUtils.
Returns:
the requested format. This simple dateformat should not be used to apply to a different pattern.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature