com.thoughtworks.xstream.converters.extended
Class ISO8601DateConverter

java.lang.Object
  extended bycom.thoughtworks.xstream.converters.basic.AbstractBasicConverter
      extended bycom.thoughtworks.xstream.converters.extended.ISO8601DateConverter
All Implemented Interfaces:
Converter

public class ISO8601DateConverter
extends AbstractBasicConverter

A DateConverter conforming to the ISO8601 standard. http://www.iso.ch/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=26780

Author:
Mauro Talevi

Constructor Summary
ISO8601DateConverter()
           
 
Method Summary
 boolean canConvert(java.lang.Class type)
          Called by XStream to determine whether to use this converter instance to marshall a particular type.
protected  java.lang.Object fromString(java.lang.String str)
           
protected  java.lang.String toString(java.lang.Object obj)
           
 
Methods inherited from class com.thoughtworks.xstream.converters.basic.AbstractBasicConverter
marshal, unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISO8601DateConverter

public ISO8601DateConverter()
Method Detail

canConvert

public boolean canConvert(java.lang.Class type)
Description copied from interface: Converter
Called by XStream to determine whether to use this converter instance to marshall a particular type.

Specified by:
canConvert in interface Converter
Specified by:
canConvert in class AbstractBasicConverter

fromString

protected java.lang.Object fromString(java.lang.String str)
Specified by:
fromString in class AbstractBasicConverter

toString

protected java.lang.String toString(java.lang.Object obj)
Overrides:
toString in class AbstractBasicConverter


Joe Walnes, http://xstream.codehaus.org/