dk.netarkivet.common.distribute.arcrepository
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 |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
getInputStream
public java.io.InputStream getInputStream()
- Returns:
- the inputstream
containsHeader
public boolean containsHeader()
- Returns:
- true, if the resultStream contains a header; otherwise false.