com.aliyun.oss.common.comm

## 类 RepeatableInputStreamEntity.NoAutoClosedInputStreamEntity

- java.lang.Object
- - org.apache.http.entity.AbstractHttpEntity
  - - com.aliyun.oss.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 © 2020. All Rights Reserved.