Enum Constant Summary
Enum Constants
pause is not possible while transfer is already in progress AND cancel
was requested; so we cancel it
pause is not yet applicable since transfer has not started AND cancel was
requested; so we cancel it
pause is not possible while transfer is already in progress; so no action
taken
pause is not yet applicable since transfer has not started; so no action
taken
transfer successfully paused (and therefore the return information can be
used to resume the transfer later on)
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
boolean
Returns true if the transfer is cancelled else false.
boolean
Returns true if the transfer is paused else false.
boolean
Returns true if the transfer is not started or the pause operation has no
effect on the transfer.
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
SUCCESS
transfer successfully paused (and therefore the return information can be
used to resume the transfer later on)
NOT_STARTED
pause is not yet applicable since transfer has not started; so no action
taken
CANCELLED_BEFORE_START
pause is not yet applicable since transfer has not started AND cancel was
requested; so we cancel it
NO_EFFECT
pause is not possible while transfer is already in progress; so no action
taken
CANCELLED
pause is not possible while transfer is already in progress AND cancel
was requested; so we cancel it
Method Details
values
Returns an array containing the constants of this enum type, in
the order they are declared.
Returns:
an array containing the constants of this enum type, in the order they are declared
valueOf
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
Parameters:
name
- the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException
- if this enum type has no constant with the specified name
NullPointerException
- if the argument is null
isPaused
public boolean isPaused ()
Returns true if the transfer is paused else false.
isCancelled
public boolean isCancelled ()
Returns true if the transfer is cancelled else false.
unchanged
public boolean unchanged ()
Returns true if the transfer is not started or the pause operation has no
effect on the transfer.