public class NonshareableDateFormatCache
extends java.lang.Object
Note this class does not wrap the SimpleDateFormat objects to ensure they are not being used by threads that didn't actually request them. That can be added if problems still occur.
Constructor and Description |
---|
NonshareableDateFormatCache() |
Modifier and Type | Method and Description |
---|---|
static java.text.SimpleDateFormat |
get(java.lang.String format)
Get a SimpleDateFormat object with the specified format, pre-initialized to UTC timezone.
|
static void |
release(java.text.SimpleDateFormat sdf)
Return a SimpleDateFormat object to the appropriate queue.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
public static java.text.SimpleDateFormat get(java.lang.String format)
format
- format String to usepublic static void release(java.text.SimpleDateFormat sdf)
sdf
- SimpleDateFormat object to returnpublic java.lang.String toString()
toString
in class java.lang.Object