public enum StorageMode extends java.lang.Enum<StorageMode>
AddTorrentParams.storageMode(StorageMode).| Enum Constant and Description |
|---|
STORAGE_MODE_ALLOCATE
All pieces will be written to their final position, all files will be
allocated in full when the torrent is first started.
|
STORAGE_MODE_SPARSE
All pieces will be written to the place where they belong and sparse files
will be used.
|
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static StorageMode |
fromSwig(int swigValue) |
int |
swig() |
static StorageMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StorageMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StorageMode STORAGE_MODE_ALLOCATE
fallocate() and similar calls. This mode minimizes fragmentation.public static final StorageMode STORAGE_MODE_SPARSE
public static final StorageMode UNKNOWN
public static StorageMode[] values()
for (StorageMode c : StorageMode.values()) System.out.println(c);
public static StorageMode 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 StorageMode fromSwig(int swigValue)
swigValue - the native value