Class InternalInputStreamEntity

  • All Implemented Interfaces:
    org.apache.http.HttpEntity

    class InternalInputStreamEntity
    extends org.apache.http.entity.AbstractHttpEntity
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.InputStream content  
      private long length  
      • Fields inherited from class org.apache.http.entity.AbstractHttpEntity

        chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      InternalInputStreamEntity​(java.io.InputStream inputStream, long length, org.apache.http.entity.ContentType contentType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream getContent()  
      long getContentLength()  
      boolean isRepeatable()  
      boolean isStreaming()  
      void writeTo​(java.io.OutputStream outStream)  
      • Methods inherited from class org.apache.http.entity.AbstractHttpEntity

        consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • content

        private final java.io.InputStream content
      • length

        private final long length
    • Constructor Detail

      • InternalInputStreamEntity

        public InternalInputStreamEntity​(java.io.InputStream inputStream,
                                         long length,
                                         org.apache.http.entity.ContentType contentType)
    • Method Detail

      • isRepeatable

        public boolean isRepeatable()
      • getContentLength

        public long getContentLength()
      • getContent

        public java.io.InputStream getContent()
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTo

        public void writeTo​(java.io.OutputStream outStream)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • isStreaming

        public boolean isStreaming()