All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ups.xmlsdk.util.formatter.SyncSimpleDateFormat

java.lang.Object
   |
   +----java.text.Format
           |
           +----java.text.DateFormat
                   |
                   +----java.text.SimpleDateFormat
                           |
                           +----com.ups.xmlsdk.util.formatter.SyncSimpleDateFormat

public class SyncSimpleDateFormat
extends SimpleDateFormat
Use in place of SimpleDataFormat - avoids thread-safe problems Never save reference as an instance or class variable. Only use as temporary. User MUST call release() when done. Example:
SyncSimpleDateFormat df = new SyncSimpleDateFormat(dateFormatString, locale);
df.setTimeZone(timeZone);
dateString = df.format(calendar.getTime());
df.release();

See Also:
SimpleDateFormat

Constructor Index

 o SyncSimpleDateFormat()
 o SyncSimpleDateFormat(String)
 o SyncSimpleDateFormat(String, DateFormatSymbols)
 o SyncSimpleDateFormat(String, Locale)

Method Index

 o lock()
 o release()
When finished, user must call this method to release the lock.

Constructors

 o SyncSimpleDateFormat
 public SyncSimpleDateFormat()
 o SyncSimpleDateFormat
 public SyncSimpleDateFormat(String s)
 o SyncSimpleDateFormat
 public SyncSimpleDateFormat(String s,
                             DateFormatSymbols dfs)
 o SyncSimpleDateFormat
 public SyncSimpleDateFormat(String s,
                             Locale l)

Methods

 o lock
 public void lock()
 o release
 public void release()
When finished, user must call this method to release the lock.


All Packages  Class Hierarchy  This Package  Previous  Next  Index