public static enum FileTransfer.Status extends Enum<FileTransfer.Status>
Enum Constant and Description |
---|
cancelled
The file transfer was cancelled
|
complete
The transfer has completed successfully.
|
error
An error occurred during the transfer.
|
in_progress
The transfer is in progress.
|
initial
The initial status of the file transfer.
|
negotiated
After the stream negotiation has completed the intermediate state
between the time when the negotiation is finished and the actual
transfer begins.
|
negotiating_stream
The stream to transfer the file is being negotiated over the chosen
stream type.
|
negotiating_transfer
The file transfer is being negotiated with the peer.
|
refused
The peer has refused the file transfer request halting the file
transfer negotiation process.
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
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.
|
public static final FileTransfer.Status error
FileTransfer.getError()
public static final FileTransfer.Status initial
public static final FileTransfer.Status negotiating_transfer
negotiating_stream
public static final FileTransfer.Status refused
public static final FileTransfer.Status negotiating_stream
negotiated
public static final FileTransfer.Status negotiated
public static final FileTransfer.Status in_progress
FileTransfer.getProgress()
public static final FileTransfer.Status complete
public static final FileTransfer.Status cancelled
public static FileTransfer.Status[] values()
for (FileTransfer.Status c : FileTransfer.Status.values()) System.out.println(c);
public static FileTransfer.Status valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<FileTransfer.Status>