Class 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.
    • 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.