org.openstreetmap.osmosis.core.xml.common
Class XmlTimestampFormat

java.lang.Object
  extended by org.openstreetmap.osmosis.core.domain.common.TimestampFormat
      extended by org.openstreetmap.osmosis.core.xml.common.XmlTimestampFormat

public class XmlTimestampFormat
extends TimestampFormat

A timestamp format implementation for dates read and stored from osm xml files.

Author:
Brett Henderson

Constructor Summary
XmlTimestampFormat()
          Creates a new instance.
 
Method Summary
 java.lang.String formatTimestamp(java.util.Date timestamp)
          Formats the date object into string form.
 java.util.Date parseTimestamp(java.lang.String timestamp)
          Parses a date string into date form.
 
Methods inherited from class org.openstreetmap.osmosis.core.domain.common.TimestampFormat
isEquivalent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlTimestampFormat

public XmlTimestampFormat()
Creates a new instance.

Method Detail

formatTimestamp

public java.lang.String formatTimestamp(java.util.Date timestamp)
Formats the date object into string form.

Specified by:
formatTimestamp in class TimestampFormat
Parameters:
timestamp - The date to be formatted.
Returns:
The formatted date string.

parseTimestamp

public java.util.Date parseTimestamp(java.lang.String timestamp)
Parses a date string into date form.

Specified by:
parseTimestamp in class TimestampFormat
Parameters:
timestamp - The date string to be parsed.
Returns:
The date object.