Class WARCRecord

All Implemented Interfaces:
Closeable, AutoCloseable

public class WARCRecord extends ArchiveRecord
A WARC file Record.
Author:
stack
  • Constructor Details

    • WARCRecord

      public WARCRecord(InputStream in, String identifier, long offset) throws IOException
      Constructor.
      Parameters:
      in - Stream cue'd up to be at the start of the record this instance is to represent.
      Throws:
      IOException
    • WARCRecord

      public WARCRecord(InputStream in, ArchiveRecordHeader headers) throws IOException
      Constructor.
      Parameters:
      in - Stream cue'd up just past Header Line and Named Fields.
      headers - Header Line and ANVL Named fields.
      Throws:
      IOException
    • WARCRecord

      public WARCRecord(InputStream in, String identifier, long offset, boolean digest, boolean strict) throws IOException
      Constructor.
      Parameters:
      in - Stream cue'd up to be at the start of the record this instance is to represent or, if headers is not null, just past the Header Line and Named Fields.
      identifier - Identifier for this the hosting Reader.
      offset - Current offset into in (Used to keep position properly aligned). Usually 0.
      digest - True if we're to calculate digest for this record. Not digesting saves about ~15% of cpu during parse.
      strict - Be strict parsing (Parsing stops if file inproperly formatted).
      Throws:
      IOException
  • Method Details