net.fortuna.ical4j.model
Class CalendarDateFormatFactory

java.lang.Object
  extended by 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.

Author:
Dave Nault dnault@laszlosystems.com
See Also:
getInstance(String)

Constructor Summary
CalendarDateFormatFactory()
           
 
Method Summary
static java.text.DateFormat getInstance(java.lang.String pattern)
          Returns DateFormat objects optimized for common iCalendar date patterns.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarDateFormatFactory

public CalendarDateFormatFactory()
Method Detail

getInstance

public static java.text.DateFormat getInstance(java.lang.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.

Parameters:
pattern - a SimpleDateFormat-compatible pattern
Returns:
an optimized DateFormat instance if possible, otherwise a normal SimpleDateFormat instance
Throws:
java.lang.NullPointerException - if the given pattern is null
java.lang.IllegalArgumentException - if the given pattern is invalid


Copyright © 2004-2009 Modularity. All Rights Reserved.