| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| 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 | |
|---|---|
| cancelledThe file transfer was cancelled | |
| completeThe transfer has completed successfully. | |
| errorAn error occurred during the transfer. | |
| in_progressThe transfer is in progress. | |
| initialThe initial status of the file transfer. | |
| negotiatedAfter the stream negotiation has completed the intermediate state between the time when the negotiation is finished and the actual transfer begins. | |
| negotiating_streamThe stream to transfer the file is being negotiated over the chosen stream type. | |
| negotiating_transferThe file transfer is being negotiated with the peer. | |
| refusedThe 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 are declared. | 
| Methods inherited from class java.lang.Enum | 
|---|
| clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf | 
| Methods inherited from class java.lang.Object | 
|---|
| 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_streampublic static final FileTransfer.Status refused
public static final FileTransfer.Status negotiating_stream
negotiatedpublic 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 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 name
NullPointerException - if the argument is nullpublic String toString()
toString in class Enum<FileTransfer.Status>| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||