Class FileUpload.CustomInputStreamEntity

  • All Implemented Interfaces:
    org.apache.http.HttpEntity
    Enclosing class:
    FileUpload

    static class FileUpload.CustomInputStreamEntity
    extends org.apache.http.entity.InputStreamEntity
    • Field Summary

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

        chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void writeTo​(java.io.OutputStream p_writeTo_1_)  
      • Methods inherited from class org.apache.http.entity.InputStreamEntity

        getContent, getContentLength, isRepeatable, isStreaming
      • Methods inherited from class org.apache.http.entity.AbstractHttpEntity

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

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

      • length

        private final long length
      • content

        private final java.io.InputStream content
    • Constructor Detail

      • CustomInputStreamEntity

        public CustomInputStreamEntity​(java.io.InputStream p_i51622_1_,
                                       long p_i51622_2_,
                                       UploadStatus p_i51622_4_)
    • Method Detail

      • writeTo

        public void writeTo​(java.io.OutputStream p_writeTo_1_)
                     throws java.io.IOException
        Specified by:
        writeTo in interface org.apache.http.HttpEntity
        Overrides:
        writeTo in class org.apache.http.entity.InputStreamEntity
        Throws:
        java.io.IOException