@Environment(value=CLIENT)
static class FileUpload.CustomInputStreamEntity
extends org.apache.http.entity.InputStreamEntity
Modifier and Type | Field and Description |
---|---|
private InputStream |
content |
private long |
length |
private UploadStatus |
uploadStatus |
Constructor and Description |
---|
CustomInputStreamEntity(InputStream content,
long length,
UploadStatus uploadStatus) |
Modifier and Type | Method and Description |
---|---|
void |
writeTo(OutputStream outstream) |
getContent, getContentLength, isRepeatable, isStreaming
private final long length
private final InputStream content
private final UploadStatus uploadStatus
public CustomInputStreamEntity(InputStream content, long length, UploadStatus uploadStatus)
public void writeTo(OutputStream outstream) throws IOException
writeTo
in interface org.apache.http.HttpEntity
writeTo
in class org.apache.http.entity.InputStreamEntity
IOException