Class ResultStream
- java.lang.Object
-
- dk.netarkivet.common.distribute.arcrepository.ResultStream
-
public class ResultStream extends java.lang.Object
Simple helper class to store the fact, whether we have a stream which contains a header or a stream, which does not.
-
-
Constructor Summary
Constructors Constructor Description ResultStream(java.io.InputStream inputstream, boolean containsHeader)
Create a ResultStream with the given inputStream and information of whether or not the inputStream contains a header.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsHeader()
java.io.InputStream
getInputStream()
-
-
-
Constructor Detail
-
ResultStream
public ResultStream(java.io.InputStream inputstream, boolean containsHeader)
Create a ResultStream with the given inputStream and information of whether or not the inputStream contains a header.- Parameters:
inputstream
- An inputStream w/ the data for a stored URIcontainsHeader
- true, if the stream contains a header, otherwise false
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream()
- Returns:
- the inputstream
-
containsHeader
public boolean containsHeader()
- Returns:
- true, if the resultStream contains a header; otherwise false.
-
-