public class JsonStreamerEntity
extends java.lang.Object
| 构造器和说明 |
|---|
JsonStreamerEntity(ResponseHandlerInterface progressHandler,
boolean useGZipCompression,
java.lang.String elapsedField) |
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
Header |
getContentEncoding() |
long |
getContentLength() |
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()
public boolean isChunked()
public boolean isStreaming()
public long getContentLength()
public Header getContentEncoding()
public Header getContentType()
public void consumeContent()
throws java.io.IOException,
java.lang.UnsupportedOperationException
java.io.IOExceptionjava.lang.UnsupportedOperationExceptionpublic java.io.InputStream getContent()
throws java.io.IOException,
java.lang.UnsupportedOperationException
java.io.IOExceptionjava.lang.UnsupportedOperationExceptionpublic void writeTo(java.io.OutputStream out)
throws java.io.IOException
java.io.IOException