dk.netarkivet.common.utils.archive
Class ArchiveDateConverter

java.lang.Object
  extended by dk.netarkivet.common.utils.archive.ArchiveDateConverter

public class ArchiveDateConverter
extends java.lang.Object

Utility class for dispensing ARC/WARC DateFormat objects. Each object is thread safe as long as it it only used by the same thread. This means no caching of this object for later use unless its by the same thread. ThreadLocal handles automatic instantiation and cleanup of objects.


Field Summary
static java.lang.String ARC_DATE_FORMAT
          ARC date format string as speficied in the ARC documentation.
static java.lang.String WARC_DATE_FORMAT
          WARC date format string as specified by the WARC ISO standard.
 
Method Summary
static java.text.DateFormat getArcDateFormat()
          Returns a DateFormat object for ARC date conversion.
static java.text.DateFormat getWarcDateFormat()
          Returns a DateFormat object for WARC date conversion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARC_DATE_FORMAT

public static final java.lang.String ARC_DATE_FORMAT
ARC date format string as speficied in the ARC documentation.

See Also:
Constant Field Values

WARC_DATE_FORMAT

public static final java.lang.String WARC_DATE_FORMAT
WARC date format string as specified by the WARC ISO standard.

See Also:
Constant Field Values
Method Detail

getArcDateFormat

public static java.text.DateFormat getArcDateFormat()
Returns a DateFormat object for ARC date conversion.

Returns:
a DateFormat object for ARC date conversion

getWarcDateFormat

public static java.text.DateFormat getWarcDateFormat()
Returns a DateFormat object for WARC date conversion.

Returns:
a DateFormat object for WARC date conversion