public abstract class TransferProgress extends Object
限定符和类型 | 字段和说明 |
---|---|
protected long |
bytesTransferred |
protected long |
totalBytesToTransfer |
构造器和说明 |
---|
TransferProgress() |
限定符和类型 | 方法和说明 |
---|---|
long |
getBytesTransfered()
已过时。
Replaced by
getBytesTransferred() |
long |
getBytesTransferred()
Returns the number of bytes completed in the associated transfer.
|
double |
getPercentTransfered()
已过时。
Replaced by
getPercentTransferred() |
double |
getPercentTransferred()
Returns a percentage of the number of bytes transferred out of the total
number of bytes to transfer.
|
long |
getTotalBytesToTransfer()
Returns the total size in bytes of the associated transfer, or -1
if the total size isn't known.
|
protected volatile long bytesTransferred
protected volatile long totalBytesToTransfer
public long getBytesTransfered()
getBytesTransferred()
public long getBytesTransferred()
public long getTotalBytesToTransfer()
@Deprecated public double getPercentTransfered()
getPercentTransferred()
public double getPercentTransferred()
Copyright © 2016. All rights reserved.