public interface TransferListener
限定符和类型 | 方法和说明 |
---|---|
void |
onError(java.lang.String id,
CosXmlClientException clientException,
CosXmlServiceException serviceException)
Called when an exception happens.
|
void |
onProgressChanged(java.lang.String id,
long bytesCurrent,
long bytesTotal)
Called when more bytes are transferred.
|
void |
onStateChanged(java.lang.String id,
TransferState state)
Called when the state of the transfer is changed.
|
void onStateChanged(java.lang.String id, TransferState state)
id
- The id of the transfer record.state
- The new state of the transfer.void onProgressChanged(java.lang.String id, long bytesCurrent, long bytesTotal)
id
- The id of the transfer record.bytesCurrent
- Bytes transferred currently.bytesTotal
- The total bytes to be transferred.void onError(java.lang.String id, CosXmlClientException clientException, CosXmlServiceException serviceException)
id
- The id of the transfer record.clientException
- An client exception object.serviceException
- An Service exception object.