public class DecompressingEntity extends HttpEntityWrapper
HttpEntity实现的通用基类。
wrappedEntity| Constructor and Description |
|---|
DecompressingEntity(HttpEntity wrapped, InputStreamFactory inputStreamFactory)
创建一个新的 DecompressingEntity 。
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContent() |
Header |
getContentEncoding() |
long |
getContentLength() |
void |
writeTo(OutputStream outstream) |
consumeContent, getContentType, isChunked, isRepeatable, isStreamingpublic DecompressingEntity(HttpEntity wrapped, InputStreamFactory inputStreamFactory)
DecompressingEntity 。
wrapped - 非空HttpEntity要包装
inputStreamFactory - 工厂创建解压缩流。
public InputStream getContent() throws IOException
getContent在界面
HttpEntity
getContent在
HttpEntityWrapper
IOException
public void writeTo(OutputStream outstream) throws IOException
writeTo在界面
HttpEntity
writeTo在
HttpEntityWrapper
IOException
public Header getContentEncoding()
getContentEncoding在界面
HttpEntity
getContentEncoding在类
HttpEntityWrapper
public long getContentLength()
getContentLength在界面
HttpEntity
getContentLength在
HttpEntityWrapper
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.