org.jopendocument.util
Class XMLDateFormat

java.lang.Object
  extended by java.text.Format
      extended by org.jopendocument.util.XMLDateFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class XMLDateFormat
extends java.text.Format

Format a Date according to W3C XML Schema 1.0 Part 2, Section 3.2.7-14.

Author:
Sylvain CUAZ
See Also:
XMLGregorianCalendar, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.Format
java.text.Format.Field
 
Constructor Summary
XMLDateFormat()
           
 
Method Summary
 java.lang.StringBuffer format(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
           
 java.util.Date parseObject(java.lang.String source, java.text.ParsePosition pos)
           
 
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDateFormat

public XMLDateFormat()
Method Detail

format

public java.lang.StringBuffer format(java.lang.Object obj,
                                     java.lang.StringBuffer toAppendTo,
                                     java.text.FieldPosition pos)
Specified by:
format in class java.text.Format

parseObject

public java.util.Date parseObject(java.lang.String source,
                                  java.text.ParsePosition pos)
Specified by:
parseObject in class java.text.Format