org.ijsberg.iglu.util.time
Class SafeDateFormat
java.lang.Object
org.ijsberg.iglu.util.time.SafeDateFormat
public final class SafeDateFormat
- extends Object
Threadsafe date converter.
Wraps a non lenient SimpleDateFormat.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SafeDateFormat
public SafeDateFormat(DateFormat aDateFormat)
- Parameters:
aDateFormat -
SafeDateFormat
public SafeDateFormat(String simpleDateFormat)
- Parameters:
simpleDateFormat -
SafeDateFormat
public SafeDateFormat(String simpleDateFormat,
DateFormatSymbols symbols)
- Parameters:
simpleDateFormat - symbols -
format
public String format(Date date)
- Parameters:
date -
- Returns:
parse
public Date parse(String dateStr)
throws ParseException
- Throws:
ParseException
Copyright © 2011. All Rights Reserved.