com.extrememessaging.ResponseMaster
Class SimpleDateFormat

java.lang.Object
  extended by com.extrememessaging.ResponseMaster.SimpleDateFormat

public class SimpleDateFormat
extends java.lang.Object

This simple class just wraps java.text.SimpleDateFormat to make it thread safe. I've only included the methods that I need. Let me know if you need more.


Constructor Summary
SimpleDateFormat(java.lang.String formatString)
           
SimpleDateFormat(java.lang.String formatString, java.util.TimeZone tz)
           
 
Method Summary
 java.lang.String format(java.util.Date dtInput)
           
 java.util.Date parse(java.lang.String sInput)
           
static java.util.Date ParseDate(SimpleDateFormat[] dateFormats, java.lang.String input)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDateFormat

public SimpleDateFormat(java.lang.String formatString,
                        java.util.TimeZone tz)

SimpleDateFormat

public SimpleDateFormat(java.lang.String formatString)
Method Detail

format

public java.lang.String format(java.util.Date dtInput)

parse

public java.util.Date parse(java.lang.String sInput)
                     throws java.text.ParseException
Throws:
java.text.ParseException

ParseDate

public static java.util.Date ParseDate(SimpleDateFormat[] dateFormats,
                                       java.lang.String input)
                                throws java.text.ParseException
Throws:
java.text.ParseException