net.fortuna.ical4j.model
Class CalendarDateFormatFactory
java.lang.Object
net.fortuna.ical4j.model.CalendarDateFormatFactory
public class CalendarDateFormatFactory
extends java.lang.Object
$Id: CalendarDateFormatFactory.java,v 1.4 2008/12/29 06:49:13 fortuna Exp $ [06-Apr-2004]
Creates DateFormat objects optimized for common iCalendar date patterns.
static java.text.DateFormat | getInstance(String pattern) - Returns DateFormat objects optimized for common iCalendar date patterns.
|
getInstance
public static java.text.DateFormat getInstance(String pattern)
Returns DateFormat objects optimized for common iCalendar date patterns.
The DateFormats are *not* thread safe. Attempts to get or set the
Calendar or NumberFormat of an optimized DateFormat will result in
an UnsupportedOperation exception being thrown.
pattern
- a SimpleDateFormat-compatible pattern
- an optimized DateFormat instance if possible,
otherwise a normal SimpleDateFormat instance