org.jopendocument.util
Class XMLCalendarFormat
java.lang.Object
java.text.Format
org.jopendocument.util.XMLCalendarFormat
- All Implemented Interfaces:
- Serializable, Cloneable
public class XMLCalendarFormat
- extends Format
Format a Calendar local time according to W3C XML Schema 1.0 Part 2, Section
3.2.7-14. I.e. Format.format(Object) never write a time zone part and
Format.parseObject(String) will always use this time zone.
- Author:
- Sylvain CUAZ
- See Also:
XMLGregorianCalendar,
XMLDateFormat,
Serialized Form
factory
protected static final DatatypeFactory factory
tz
protected final TimeZone tz
locale
protected final Locale locale
XMLCalendarFormat
public XMLCalendarFormat()
XMLCalendarFormat
public XMLCalendarFormat(TimeZone timezone,
Locale aLocale)
XMLCalendarFormat
public XMLCalendarFormat(TimeZone timezone,
Locale aLocale,
boolean alwaysParseGregorian)
format
public StringBuffer format(Object obj,
StringBuffer toAppendTo,
FieldPosition pos)
- Specified by:
format in class Format
parseObject
public Calendar parseObject(String source,
ParsePosition pos)
- Specified by:
parseObject in class Format
getTimeZone
protected final TimeZone getTimeZone()
getLocale
protected final Locale getLocale()
Copyright © 2010 jOpenDocument All Rights Reserved.