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
-
SyncSimpleDateFormat()
-
-
SyncSimpleDateFormat(String)
-
-
SyncSimpleDateFormat(String, DateFormatSymbols)
-
-
SyncSimpleDateFormat(String, Locale)
-
-
lock()
-
-
release()
- When finished, user must call this method to release the lock.
SyncSimpleDateFormat
public SyncSimpleDateFormat()
SyncSimpleDateFormat
public SyncSimpleDateFormat(String s)
SyncSimpleDateFormat
public SyncSimpleDateFormat(String s,
DateFormatSymbols dfs)
SyncSimpleDateFormat
public SyncSimpleDateFormat(String s,
Locale l)
lock
public void lock()
release
public void release()
- When finished, user must call this method to release the lock.
All Packages Class Hierarchy This Package Previous Next Index