public enum TransferState extends java.lang.Enum<TransferState>
枚举常量和说明 |
---|
CANCELED
This state represents a transfer that is canceled
|
COMPLETED
This state represents a transfer that is completed
|
CONSTRAINED |
FAILED
This state represents a transfer that has failed
|
IN_PROGRESS
This state represents a transfer that is currently uploading or
downloading data
|
PAUSED
This state represents a transfer that is paused manual
|
RESUMED_WAITING
This state represents a transfer that has been resumed and queued for
execution, but has not started to actively transfer data.
|
UNKNOWN
This is an internal value used to detect if the current transfer is in an
unknown state
|
WAITING
This state represents a transfer that has been queued, but has not yet
started
|
限定符和类型 | 方法和说明 |
---|---|
static TransferState |
getState(java.lang.String stateAsString)
Returns the transfer state from string
|
static TransferState |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static TransferState[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final TransferState CONSTRAINED
public static final TransferState WAITING
public static final TransferState IN_PROGRESS
public static final TransferState PAUSED
public static final TransferState RESUMED_WAITING
public static final TransferState COMPLETED
public static final TransferState CANCELED
public static final TransferState FAILED
public static final TransferState UNKNOWN
public static TransferState[] values()
for (TransferState c : TransferState.values()) System.out.println(c);
public static TransferState valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public static TransferState getState(java.lang.String stateAsString)
stateAsString
- state of the transfer represented as string.TransferState