Package com.mojang.realmsclient.client
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
@Environment(CLIENT)
static class FileUpload.CustomInputStreamEntity
extends org.apache.http.entity.InputStreamEntity
-
Field Summary
Fields Modifier and Type Field Description private InputStreamcontentprivate longlengthprivate UploadStatusuploadStatus -
Constructor Summary
Constructors Constructor Description CustomInputStreamEntity(InputStream content, long length, UploadStatus uploadStatus) -
Method Summary
Modifier and Type Method Description voidwriteTo(OutputStream outstream)Methods inherited from class org.apache.http.entity.InputStreamEntity
getContent, getContentLength, isRepeatable, isStreaming
-
Field Details
-
length
private final long length -
content
-
uploadStatus
-
-
Constructor Details
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceorg.apache.http.HttpEntity- Overrides:
writeToin classorg.apache.http.entity.InputStreamEntity- Throws:
IOException
-