Class CalendarDateFormatFactory


  • @Deprecated
    public final class CalendarDateFormatFactory
    extends Object
    Deprecated.
    adoption of the new date/time API means formatting is now supported via DateTimeFormatter
    $Id$ [06-Apr-2004]

    Creates DateFormat objects optimized for common iCalendar date patterns.

    See Also:
    getInstance(String)
    • Method Detail

      • getInstance

        public static DateFormat getInstance​(String pattern)
        Deprecated.
        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