org.jopendocument.util
Class XMLDateFormat

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

public class XMLDateFormat
extends 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
Format.Field
 
Constructor Summary
XMLDateFormat()
           
 
Method Summary
 StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos)
           
 Date parseObject(String source, ParsePosition pos)
           
 
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDateFormat

public XMLDateFormat()
Method Detail

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


Copyright © 2010 jOpenDocument All Rights Reserved.