com.aliyun.oss.common.comm.io

## 类 ChunkedInputStreamEntity.ReleasableInputStreamEntity

- java.lang.Object
- - org.apache.http.entity.AbstractHttpEntity
  - - com.aliyun.oss.common.comm.io.ChunkedInputStreamEntity.ReleasableInputStreamEntity

- 所有已实现的接口:
    Releasable, org.apache.http.HttpEntity
  封闭类:
    ChunkedInputStreamEntity

      public static class ChunkedInputStreamEntity.ReleasableInputStreamEntity
      extends org.apache.http.entity.AbstractHttpEntity
      implements Releasable

  A releaseable HTTP entity that can control its inner inputstream's auto-close functionality on/off, and it will try to close its inner inputstream by default when the inputstream reaches EOF.

- - ### 字段概要

    - ### 从类继承的字段 org.apache.http.entity.AbstractHttpEntity

      `chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE`

  - ### 构造器概要

    构造器
    构造器和说明
    `ChunkedInputStreamEntity.ReleasableInputStreamEntity(InputStream instream)`
    `ChunkedInputStreamEntity.ReleasableInputStreamEntity(InputStream instream, org.apache.http.entity.ContentType contentType)`
    `ChunkedInputStreamEntity.ReleasableInputStreamEntity(InputStream instream, long length)`
    `ChunkedInputStreamEntity.ReleasableInputStreamEntity(InputStream instream, long length, org.apache.http.entity.ContentType contentType)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `close()`
    `InputStream` | `getContent()`
    `long` | `getContentLength()`
    `boolean` | `isCloseDisabled()`
    `boolean` | `isRepeatable()`
    `boolean` | `isStreaming()`
    `void` | `release()`
    `void` | `setCloseDisabled(boolean closeDisabled)`
    `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`

- - ### 构造器详细资料

    - #### ChunkedInputStreamEntity.ReleasableInputStreamEntity

          public ChunkedInputStreamEntity.ReleasableInputStreamEntity(InputStream instream)

    - #### ChunkedInputStreamEntity.ReleasableInputStreamEntity

          public ChunkedInputStreamEntity.ReleasableInputStreamEntity(InputStream instream,
                                                              long length)

    - #### ChunkedInputStreamEntity.ReleasableInputStreamEntity

          public ChunkedInputStreamEntity.ReleasableInputStreamEntity(InputStream instream,
                                                              org.apache.http.entity.ContentType contentType)

    - #### ChunkedInputStreamEntity.ReleasableInputStreamEntity

          public ChunkedInputStreamEntity.ReleasableInputStreamEntity(InputStream instream,
                                                              long length,
                                                              org.apache.http.entity.ContentType contentType)

  - ### 方法详细资料

    - #### isRepeatable

          public boolean isRepeatable()

      指定者:
        `isRepeatable` 在接口中 `org.apache.http.HttpEntity`

    - #### getContentLength

          public long getContentLength()

      指定者:
        `getContentLength` 在接口中 `org.apache.http.HttpEntity`

    - #### getContent

          public InputStream getContent()
                                 throws IOException

      指定者:
        `getContent` 在接口中 `org.apache.http.HttpEntity`
      抛出:
        `IOException`

    - #### writeTo

          public void writeTo(OutputStream outstream)
                       throws IOException

      指定者:
        `writeTo` 在接口中 `org.apache.http.HttpEntity`
      抛出:
        `IOException`

    - #### isStreaming

          public boolean isStreaming()

      指定者:
        `isStreaming` 在接口中 `org.apache.http.HttpEntity`

    - #### close

          public void close()

    - #### release

          public void release()

      指定者:
        `release` 在接口中 `Releasable`

    - #### isCloseDisabled

          public boolean isCloseDisabled()

    - #### setCloseDisabled

          public void setCloseDisabled(boolean closeDisabled)

Copyright © 2020. All Rights Reserved.