Class WarcRecord.Header

java.lang.Object
it.unimi.dsi.law.warc.io.WarcRecord.Header
Enclosing class:
WarcRecord

public static class WarcRecord.Header
extends Object
A class to contain fields contained in the warc header.
  • Field Details

    • dataLength

      public long dataLength
      The warc data-length.
    • recordType

      public WarcRecord.RecordType recordType
      The warc record-type.
    • subjectUri

      public URI subjectUri
      The warc subject-uri.
    • creationDate

      public Date creationDate
      The warc creation-date.
    • contentType

      public WarcRecord.ContentType contentType
      The warc content-type.
    • recordId

      public UUID recordId
      The warc record id.
    • anvlFields

      public final Map<String,​String> anvlFields
      The warc anvl-fields.
  • Constructor Details

    • Header

      public Header()
  • Method Details

    • copy

      public void copy​(WarcRecord.Header header)
      Copies this heaer fields from another header.
      Parameters:
      header - the header to copy from.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object