Class WarcRecordFactory

java.lang.Object
com.github.bottomlessarchive.warc.service.record.WarcRecordFactory

public class WarcRecordFactory
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    WarcRecordFactory()  
  • Method Summary

    Modifier and Type Method Description
    WarcRecord<WarcContentBlock> createWarcRecord​(org.apache.http.message.HeaderGroup warcHeaders, org.apache.commons.io.input.BoundedInputStream contentBlockStream)
    Creates a WARC record with specified WARC Headers.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • createWarcRecord

      public WarcRecord<WarcContentBlock> createWarcRecord​(org.apache.http.message.HeaderGroup warcHeaders, org.apache.commons.io.input.BoundedInputStream contentBlockStream)
      Creates a WARC record with specified WARC Headers.
      Parameters:
      warcHeaders - WARC Headers of the WARC record
      contentBlockStream - Content block stream
      Returns:
      the created warc record