Class 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.
    Author:
    nicl
    • Field Summary

      Fields 
      Modifier and Type Field Description
      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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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
    • 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