## 接口 com.aliyun.oss.event.ProgressListener
的使用

- 使用ProgressListener的程序包
  程序包 | 说明
  --- | ---
  com.aliyun.oss.event |
  com.aliyun.oss.model |

- - ### com.aliyun.oss.event中ProgressListener的使用

    声明为ProgressListener的com.aliyun.oss.event中的字段
    限定符和类型 | 字段和说明
    --- | ---
    `static ProgressListener` | ProgressListener.`NOOP`

    返回ProgressListener的com.aliyun.oss.event中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `ProgressListener` | ProgressInputStream.`getListener()`

    参数类型为ProgressListener的com.aliyun.oss.event中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static void` | ProgressPublisher.`publishProgress(ProgressListener listener, ProgressEventType eventType)`
    `static void` | ProgressPublisher.`publishRequestBytesTransferred(ProgressListener listener, long bytes)`
    `static void` | ProgressPublisher.`publishRequestContentLength(ProgressListener listener, long bytes)`
    `static void` | ProgressPublisher.`publishResponseBytesTransferred(ProgressListener listener, long bytes)`
    `static void` | ProgressPublisher.`publishResponseContentLength(ProgressListener listener, long bytes)`
    `static void` | ProgressPublisher.`publishSelectProgress(ProgressListener listener, ProgressEventType eventType, long scannedBytes)`

    参数类型为ProgressListener的com.aliyun.oss.event中的构造器
    构造器和说明
    `ProgressInputStream(InputStream is, ProgressListener listener)`
    `ProgressInputStream(InputStream is, ProgressListener listener, int notifyThresHold)`

  - ### com.aliyun.oss.model中ProgressListener的使用

    返回ProgressListener的com.aliyun.oss.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `ProgressListener` | WebServiceRequest.`getProgressListener()`
    `ProgressListener` | SelectObjectRequest.`getSelectProgressListener()`
    `ProgressListener` | CreateSelectObjectMetadataRequest.`getSelectProgressListener()`

    参数类型为ProgressListener的com.aliyun.oss.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | WebServiceRequest.`setProgressListener(ProgressListener progressListener)`
    `void` | SelectObjectRequest.`setSelectProgressListener(ProgressListener selectProgressListener)`
    `void` | CreateSelectObjectMetadataRequest.`setSelectProgressListener(ProgressListener selectProgressListener)`
    `<T extends WebServiceRequest> T` | WebServiceRequest.`withProgressListener(ProgressListener progressListener)`
    `SelectObjectRequest` | SelectObjectRequest.`withSelectProgressListener(ProgressListener selectProgressListener)`
    `CreateSelectObjectMetadataRequest` | CreateSelectObjectMetadataRequest.`withSelectProgressListener(ProgressListener selectProgressListener)`

    参数类型为ProgressListener的com.aliyun.oss.model中的构造器
    构造器和说明
    `CreateSelectMetaInputStream(InputStream in, SelectObjectMetadata.SelectContentMetadataBase selectContentMetadataBase, ProgressListener selectProgressListener)`
    `SelectInputStream(InputStream in, ProgressListener selectProgressListener, boolean payloadCrcEnabled)`

Copyright © 2020. All Rights Reserved.