Class StreamContainer


  • public class StreamContainer
    extends ContentHeaderHandler
    Contains the inputStream for the body and decodes the headers Content-Type and Content-Length for further information about that stream.
    • Constructor Detail

      • StreamContainer

        public StreamContainer​(java.io.InputStream inputStream,
                               java.lang.String mediaType,
                               java.nio.charset.Charset charset,
                               java.lang.Long contentLength)
        Constructor used when streams have to be sent.
        Parameters:
        inputStream - The inputStream with the data.
        mediaType - The mime type for the data.
        charset - The charset - if any. Can be null.
        contentLength - The length of the content - if any. Can be null.
    • Method Detail

      • getInputStream

        public java.io.InputStream getInputStream()