public static enum TorrentStatus.State extends java.lang.Enum<TorrentStatus.State>
| Enum Constant and Description |
|---|
ALLOCATING
If the torrent was started in full allocation mode, this
indicates that the (disk) storage for the torrent is
allocated.
|
CHECKING_FILES
The torrent has not started its download yet, and is
currently checking existing files.
|
CHECKING_RESUME_DATA
The torrent is currently checking the fastresume data and
comparing it to the files on disk.
|
DOWNLOADING
The torrent is being downloaded.
|
DOWNLOADING_METADATA
The torrent is trying to download metadata from peers.
|
FINISHED
In this state the torrent has finished downloading but
still doesn't have the entire torrent.
|
SEEDING
In this state the torrent has finished downloading and
is a pure seeder.
|
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static TorrentStatus.State |
fromSwig(int swigValue) |
int |
swig() |
static TorrentStatus.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TorrentStatus.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TorrentStatus.State CHECKING_FILES
public static final TorrentStatus.State DOWNLOADING_METADATA
public static final TorrentStatus.State DOWNLOADING
public static final TorrentStatus.State FINISHED
public static final TorrentStatus.State SEEDING
public static final TorrentStatus.State ALLOCATING
public static final TorrentStatus.State CHECKING_RESUME_DATA
public static final TorrentStatus.State UNKNOWN
public static TorrentStatus.State[] values()
for (TorrentStatus.State c : TorrentStatus.State.values()) System.out.println(c);
public static TorrentStatus.State valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int swig()
public static TorrentStatus.State fromSwig(int swigValue)
swigValue -