com.thoughtworks.xstream.converters.basic
Class ThreadSafeSimpleDateFormat

java.lang.Object
  extended by com.thoughtworks.xstream.core.util.ThreadSafeSimpleDateFormat
      extended by com.thoughtworks.xstream.converters.basic.ThreadSafeSimpleDateFormat

Deprecated. since 1.2.1, moved to com.thoughtworks.xstream.core.util. It is not part of public API, use on your own risk.

public class ThreadSafeSimpleDateFormat
extends com.thoughtworks.xstream.core.util.ThreadSafeSimpleDateFormat

Wrapper around java.text.SimpleDateFormat that can be called by multiple threads concurrently.

Author:
Joe Walnes

Constructor Summary
ThreadSafeSimpleDateFormat(java.lang.String format, int initialPoolSize, int maxPoolSize)
          Deprecated.  
 
Method Summary
 java.lang.String format(java.util.Date date)
          Deprecated.  
 java.util.Date parse(java.lang.String date)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadSafeSimpleDateFormat

public ThreadSafeSimpleDateFormat(java.lang.String format,
                                  int initialPoolSize,
                                  int maxPoolSize)
Deprecated. 
Method Detail

format

public java.lang.String format(java.util.Date date)
Deprecated. 
Overrides:
format in class com.thoughtworks.xstream.core.util.ThreadSafeSimpleDateFormat

parse

public java.util.Date parse(java.lang.String date)
                     throws java.text.ParseException
Deprecated. 
Overrides:
parse in class com.thoughtworks.xstream.core.util.ThreadSafeSimpleDateFormat
Throws:
java.text.ParseException


Joe Walnes, http://xstream.codehaus.org/