com.aliyun.mns.common.comm
类 RepeatableInputStreamEntity.NoAutoClosedInputStreamEntity
java.lang.Object
org.apache.http.entity.AbstractHttpEntity
com.aliyun.mns.common.comm.RepeatableInputStreamEntity.NoAutoClosedInputStreamEntity
- 所有已实现的接口:
- org.apache.http.HttpEntity
- 包容类:
- RepeatableInputStreamEntity
public static class RepeatableInputStreamEntity.NoAutoClosedInputStreamEntity
- extends org.apache.http.entity.AbstractHttpEntity
The default entity org.apache.http.entity.InputStreamEntity will close input stream after wirteTo was called.
To avoid this, we custom a entity that will not close stream automatically.
| 从类 org.apache.http.entity.AbstractHttpEntity 继承的字段 |
chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE |
| 从类 org.apache.http.entity.AbstractHttpEntity 继承的方法 |
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toString |
RepeatableInputStreamEntity.NoAutoClosedInputStreamEntity
public RepeatableInputStreamEntity.NoAutoClosedInputStreamEntity(InputStream instream,
long length)
isRepeatable
public boolean isRepeatable()
getContentLength
public long getContentLength()
getContent
public InputStream getContent()
throws IOException
- 抛出:
IOException
writeTo
public void writeTo(OutputStream outstream)
throws IOException
- 抛出:
IOException
isStreaming
public boolean isStreaming()
Copyright © 2016. All Rights Reserved.