|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<FileTransfer.Status>
org.jivesoftware.smackx.filetransfer.FileTransfer.Status
public static enum FileTransfer.Status
A class to represent the current status of the file transfer.
Enum Constant Summary | |
---|---|
cancelled
The file transfer was canceled |
|
complete
The transfer has completed successfully. |
|
error
An error occured during the transfer. |
|
in_progress
The transfer is in progress. |
|
initial
The initial status of the file transfer. |
|
negotiated
After the stream negotitation 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. |
Method Summary | |
---|---|
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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
public static final 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 namepublic String toString()
toString
in class Enum<FileTransfer.Status>
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |