com.aliyun.oss.event

## 类 ProgressInputStream

- java.lang.Object
- - java.io.InputStream
  - - java.io.FilterInputStream
    - - com.aliyun.oss.event.ProgressInputStream

- 所有已实现的接口:
    Closeable, AutoCloseable

      public abstract class ProgressInputStream
      extends FilterInputStream

- - ### 字段概要

    - ### 从类继承的字段 java.io.FilterInputStream

      `in`

  - ### 构造器概要

    构造器
    构造器和说明
    `ProgressInputStream(InputStream is, ProgressListener listener)`
    `ProgressInputStream(InputStream is, ProgressListener listener, int notifyThresHold)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `close()`
    `ProgressListener` | `getListener()`
    `protected long` | `getNotifiedByteCount()`
    `protected int` | `getUnnotifiedByteCount()`
    `InputStream` | `getWrappedInputStream()`
    `static InputStream` | `inputStreamForRequest(InputStream is, WebServiceRequest req)`
    `static InputStream` | `inputStreamForResponse(InputStream is, WebServiceRequest req)`
    `protected void` | `onClose()`
    `protected void` | `onEOF()`
    `protected void` | `onFirstRead()`
    `protected void` | `onNotifyBytesRead()`
    `protected void` | `onReset()`
    `int` | `read()`
    `int` | `read(byte[] b)`
    `int` | `read(byte[] b, int off, int len)`
    `void` | `reset()`

    - ### 从类继承的方法 java.io.FilterInputStream

      `available, mark, markSupported, skip`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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

    - #### ProgressInputStream

          public ProgressInputStream(InputStream is,
                             ProgressListener listener)

    - #### ProgressInputStream

          public ProgressInputStream(InputStream is,
                             ProgressListener listener,
                             int notifyThresHold)

  - ### 方法详细资料

    - #### inputStreamForRequest

          public static InputStream inputStreamForRequest(InputStream is,
                                          WebServiceRequest req)

    - #### inputStreamForResponse

          public static InputStream inputStreamForResponse(InputStream is,
                                           WebServiceRequest req)

    - #### onFirstRead

          protected void onFirstRead()

    - #### onEOF

          protected void onEOF()

    - #### onClose

          protected void onClose()

    - #### onReset

          protected void onReset()

    - #### onNotifyBytesRead

          protected void onNotifyBytesRead()

    - #### read

          public int read()
                   throws IOException

      覆盖:
        `read` 在类中 `FilterInputStream`
      抛出:
        `IOException`

    - #### reset

          public void reset()
                     throws IOException

      覆盖:
        `reset` 在类中 `FilterInputStream`
      抛出:
        `IOException`

    - #### read

          public int read(byte[] b)
                   throws IOException

      覆盖:
        `read` 在类中 `FilterInputStream`
      抛出:
        `IOException`

    - #### read

          public int read(byte[] b,
                 int off,
                 int len)
                   throws IOException

      覆盖:
        `read` 在类中 `FilterInputStream`
      抛出:
        `IOException`

    - #### getWrappedInputStream

          public final InputStream getWrappedInputStream()

    - #### getUnnotifiedByteCount

          protected final int getUnnotifiedByteCount()

    - #### getNotifiedByteCount

          protected final long getNotifiedByteCount()

    - #### close

          public void close()
                     throws IOException

      指定者:
        `close` 在接口中 `Closeable`
      指定者:
        `close` 在接口中 `AutoCloseable`
      覆盖:
        `close` 在类中 `FilterInputStream`
      抛出:
        `IOException`

    - #### getListener

          public final ProgressListener getListener()

Copyright © 2020. All Rights Reserved.