Enum WarcRecordType

java.lang.Object
java.lang.Enum<WarcRecordType>
com.github.bottomlessarchive.warc.service.record.domain.WarcRecordType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<WarcRecordType>, java.lang.constant.Constable

public enum WarcRecordType
extends java.lang.Enum<WarcRecordType>
Describes the various types of WARC records.
See Also:
https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/#warc-type-mandatory
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    CONTINUATION
    Record blocks from 'continuation' records must be appended to corresponding prior record block(s) (e.g. from other WARC files) to create the logically complete full-sized original record.
    CONVERSION
    A 'conversion' record shall contain an alternative version of another record’s content that was created as the result of an archival process.
    METADATA
    A 'metadata' record contains content created in order to further describe, explain, or accompany a harvested resource, in ways not covered by other record types.
    REQUEST
    A 'request' record holds the details of a complete scheme-specific request, including network protocol information, where possible.
    RESOURCE
    A 'resource' record contains a resource, without full protocol response information.
    RESPONSE
    A 'response' record should contain a complete scheme-specific response, including network protocol information, where possible.
    REVISIT
    A 'revisit' record describes the revisitation of content already archived, and might include only an abbreviated content body which has to be interpreted relative to a previous record.
    WARCINFO
    A 'warcinfo' record describes the records that follow it, up through end of file, end of input, or until next 'warcinfo' record.
  • Method Summary

    Modifier and Type Method Description
    static WarcRecordType valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static WarcRecordType[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

      public static WarcRecordType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static WarcRecordType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null