|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.domain.common.TimestampFormat
public abstract class TimestampFormat
Concrete implementations of this class support dates in a specific format. This is used for the lazy timestamp parsing functionality whereby dates can be passed through the entire pipeline in unparsed string form if both ends use the same date format.
Note that all methods within this class must be threadsafe because it may be utilised concurrently at many points throughout a processing pipeline.
Constructor Summary | |
---|---|
TimestampFormat()
|
Method Summary | |
---|---|
abstract java.lang.String |
formatTimestamp(java.util.Date timestamp)
Formats the date object into string form. |
boolean |
isEquivalent(TimestampFormat timestampFormat)
Indicates if the specified date format object supports the same date format as this object. |
abstract java.util.Date |
parseTimestamp(java.lang.String timestamp)
Parses a date string into date form. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimestampFormat()
Method Detail |
---|
public abstract java.lang.String formatTimestamp(java.util.Date timestamp)
timestamp
- The date to be formatted.
public abstract java.util.Date parseTimestamp(java.lang.String timestamp)
timestamp
- The date string to be parsed.
public boolean isEquivalent(TimestampFormat timestampFormat)
timestampFormat
- The date format to compare against.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |