dk.netarkivet.common.distribute.arcrepository
Class ResultStream

java.lang.Object
  extended by 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.
 
Method Summary
 boolean containsHeader()
           
 java.io.InputStream getInputStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 URI
containsHeader - 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.