Class FileUpload.CustomInputStreamEntity

java.lang.Object
org.apache.http.entity.AbstractHttpEntity
org.apache.http.entity.InputStreamEntity
com.mojang.realmsclient.client.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 InputStream
     
    private long
     
    private UploadStatus
     

    Fields inherited from class org.apache.http.entity.AbstractHttpEntity

    chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomInputStreamEntity​(InputStream p_87105_, long p_87106_, UploadStatus p_87107_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    writeTo​(OutputStream p_87109_)
     

    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 Details

    • length

      private final long length
    • content

      private final InputStream content
    • uploadStatus

      private final UploadStatus uploadStatus
  • Constructor Details

    • CustomInputStreamEntity

      public CustomInputStreamEntity(InputStream p_87105_, long p_87106_, UploadStatus p_87107_)
  • Method Details

    • writeTo

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