public class JsonStreamerEntity
extends java.lang.Object
implements cz.msebera.android.httpclient.HttpEntity
| Constructor and Description |
|---|
JsonStreamerEntity(ResponseHandlerInterface progressHandler,
boolean useGZipCompression,
java.lang.String elapsedField) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPart(java.lang.String key,
java.lang.Object value)
Add content parameter, identified by the given key, to the request.
|
void |
consumeContent() |
java.io.InputStream |
getContent() |
cz.msebera.android.httpclient.Header |
getContentEncoding() |
long |
getContentLength() |
cz.msebera.android.httpclient.Header |
getContentType() |
boolean |
isChunked() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
writeTo(java.io.OutputStream out) |
public JsonStreamerEntity(ResponseHandlerInterface progressHandler, boolean useGZipCompression, java.lang.String elapsedField)
public void addPart(java.lang.String key,
java.lang.Object value)
key - entity's namevalue - entity's value (Scalar, FileWrapper, StreamWrapper)public boolean isRepeatable()
isRepeatable in interface cz.msebera.android.httpclient.HttpEntitypublic boolean isChunked()
isChunked in interface cz.msebera.android.httpclient.HttpEntitypublic boolean isStreaming()
isStreaming in interface cz.msebera.android.httpclient.HttpEntitypublic long getContentLength()
getContentLength in interface cz.msebera.android.httpclient.HttpEntitypublic cz.msebera.android.httpclient.Header getContentEncoding()
getContentEncoding in interface cz.msebera.android.httpclient.HttpEntitypublic cz.msebera.android.httpclient.Header getContentType()
getContentType in interface cz.msebera.android.httpclient.HttpEntitypublic void consumeContent()
throws java.io.IOException,
java.lang.UnsupportedOperationException
consumeContent in interface cz.msebera.android.httpclient.HttpEntityjava.io.IOExceptionjava.lang.UnsupportedOperationExceptionpublic java.io.InputStream getContent()
throws java.io.IOException,
java.lang.UnsupportedOperationException
getContent in interface cz.msebera.android.httpclient.HttpEntityjava.io.IOExceptionjava.lang.UnsupportedOperationExceptionpublic void writeTo(java.io.OutputStream out)
throws java.io.IOException
writeTo in interface cz.msebera.android.httpclient.HttpEntityjava.io.IOException