Class ResponseContentBlockFactory

java.lang.Object
com.github.bottomlessarchive.warc.service.content.response.ResponseContentBlockFactory

public class ResponseContentBlockFactory
extends java.lang.Object
This class is responsible for creating new ResponseContentBlock instances.
  • Constructor Summary

    Constructors 
    Constructor Description
    ResponseContentBlockFactory()  
  • Method Summary

    Modifier and Type Method Description
    ResponseContentBlock newResponseContentBlock​(java.io.InputStream inputStream)
    Create a ResponseContentBlock from a content block InputStream of a response WARC entry.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • newResponseContentBlock

      public ResponseContentBlock newResponseContentBlock​(java.io.InputStream inputStream) throws java.io.IOException
      Create a ResponseContentBlock from a content block InputStream of a response WARC entry.
      Parameters:
      inputStream - the response WARC entry's content block stream
      Returns:
      the newly created content block
      Throws:
      java.io.IOException - when an error happens while reading the input stream