org.jopendocument.util
Class XMLDateFormat
java.lang.Object
java.text.Format
org.jopendocument.util.XMLDateFormat
- All Implemented Interfaces:
- Serializable, Cloneable
public class XMLDateFormat
- extends Format
Format an absolute Date according to W3C XML Schema 1.0 Part 2, Section
3.2.7-14. I.e. Format.format(Object) always write a time zone part and
Format.parseObject(String) will only use the default time zone if none
is specified.
- Author:
- Sylvain CUAZ
- See Also:
XMLGregorianCalendar,
XMLCalendarFormat,
Serialized Form
factory
protected static final DatatypeFactory factory
tz
protected final TimeZone tz
locale
protected final Locale locale
XMLDateFormat
public XMLDateFormat()
XMLDateFormat
public XMLDateFormat(TimeZone timezone,
Locale aLocale)
format
public StringBuffer format(Object obj,
StringBuffer toAppendTo,
FieldPosition pos)
- Specified by:
format in class Format
parseObject
public Date 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.