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

java.lang.Object
  extended by org.openstreetmap.osmosis.core.xml.common.FallbackDateParser

public class FallbackDateParser
extends java.lang.Object

Handles a number of different date FORMATS encountered in OSM. This is built based on similar code in JOSM. This class is not threadsafe, a separate instance must be created per thread.

Author:
Brett Henderson

Constructor Summary
FallbackDateParser()
          Creates a new instance.
 
Method Summary
 java.util.Date parse(java.lang.String date)
          Attempts to parse the specified date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FallbackDateParser

public FallbackDateParser()
Creates a new instance.

Method Detail

parse

public java.util.Date parse(java.lang.String date)
Attempts to parse the specified date.

Parameters:
date - The date to parse.
Returns:
The date.