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 ResponseContentBlocknewResponseContentBlock(java.io.InputStream inputStream)Create aResponseContentBlockfrom a content blockInputStreamof a response WARC entry.
-
Constructor Details
-
ResponseContentBlockFactory
public ResponseContentBlockFactory()
-
-
Method Details
-
newResponseContentBlock
public ResponseContentBlock newResponseContentBlock(java.io.InputStream inputStream) throws java.io.IOExceptionCreate aResponseContentBlockfrom a content blockInputStreamof 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
-