Class CombinedEntity

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

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

      Fields 
      Modifier and Type Field Description
      private java.io.InputStream combinedStream  
      private Resource resource  
      • Fields inherited from class org.apache.http.entity.AbstractHttpEntity

        chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      CombinedEntity​(Resource resource, java.io.InputStream inStream)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void dispose()  
      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

      • resource

        private final Resource resource
      • combinedStream

        private final java.io.InputStream combinedStream
    • Constructor Detail

      • CombinedEntity

        CombinedEntity​(Resource resource,
                       java.io.InputStream inStream)
                throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getContentLength

        public long getContentLength()
      • isRepeatable

        public boolean isRepeatable()
      • isStreaming

        public boolean isStreaming()
      • getContent

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

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

        private void dispose()