Enum FileTransfer.Status
- java.lang.Object
-
- java.lang.Enum<FileTransfer.Status>
-
- rocks.xmpp.extensions.filetransfer.FileTransfer.Status
-
- All Implemented Interfaces:
Serializable
,Comparable<FileTransfer.Status>
- Enclosing class:
- FileTransfer
public static enum FileTransfer.Status extends Enum<FileTransfer.Status>
The status of the file transfer.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELED
Indicates that the file transfer has been cancelled.COMPLETED
Indicates that the file transfer has been completed successfully.FAILED
Indicates that the file transfer failed.IN_PROGRESS
Indicates that the file transfer is in progress, i.e. bytes are currently streamed.INITIAL
Indicates that the file transfer request has not been accepted yet.REJECTED
Indicates that the file transfer request has been rejected.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileTransfer.Status
valueOf(String name)
Returns the enum constant of this type with the specified name.static FileTransfer.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIAL
public static final FileTransfer.Status INITIAL
Indicates that the file transfer request has not been accepted yet.
-
CANCELED
public static final FileTransfer.Status CANCELED
Indicates that the file transfer has been cancelled.
-
COMPLETED
public static final FileTransfer.Status COMPLETED
Indicates that the file transfer has been completed successfully.
-
FAILED
public static final FileTransfer.Status FAILED
Indicates that the file transfer failed.
-
IN_PROGRESS
public static final FileTransfer.Status IN_PROGRESS
Indicates that the file transfer is in progress, i.e. bytes are currently streamed.
-
REJECTED
public static final FileTransfer.Status REJECTED
Indicates that the file transfer request has been rejected.
-
-
Method Detail
-
values
public static FileTransfer.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FileTransfer.Status c : FileTransfer.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileTransfer.Status valueOf(String name)
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 nameNullPointerException
- if the argument is null
-
-