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
 
构造方法摘要
RepeatableInputStreamEntity.NoAutoClosedInputStreamEntity(InputStream instream, long length)
           
 
方法摘要
 InputStream getContent()
           
 long getContentLength()
           
 boolean isRepeatable()
           
 boolean isStreaming()
           
 void writeTo(OutputStream outstream)
           
 
从类 org.apache.http.entity.AbstractHttpEntity 继承的方法
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

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.