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 final InputStream
     
    private final long
     
    private final UploadStatus
     

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

    chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomInputStreamEntity(InputStream p_i51622_1_, long p_i51622_2_, UploadStatus p_i51622_4_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    writeTo(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 Details

    • length

      private final long length
    • content

      private final InputStream content
    • uploadStatus

      private final UploadStatus uploadStatus
  • Constructor Details

    • CustomInputStreamEntity

      public CustomInputStreamEntity(InputStream p_i51622_1_, long p_i51622_2_, UploadStatus p_i51622_4_)
  • Method Details

    • writeTo

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