public class create_torrent
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static create_flags_t |
merkle |
static create_flags_t |
modification_time |
static create_flags_t |
mutable_torrent_support |
static create_flags_t |
optimize_alignment |
protected boolean |
swigCMemOwn |
static create_flags_t |
symlinks |
| Modifier | Constructor and Description |
|---|---|
|
create_torrent(file_storage fs) |
|
create_torrent(file_storage fs,
int piece_size) |
|
create_torrent(file_storage fs,
int piece_size,
int pad_file_limit) |
|
create_torrent(file_storage fs,
int piece_size,
int pad_file_limit,
create_flags_t flags) |
|
create_torrent(file_storage fs,
int piece_size,
int pad_file_limit,
create_flags_t flags,
int alignment) |
protected |
create_torrent(long cPtr,
boolean cMemoryOwn) |
|
create_torrent(torrent_info ti) |
| Modifier and Type | Method and Description |
|---|---|
void |
add_collection(java.lang.String c) |
void |
add_http_seed(java.lang.String url) |
void |
add_node(string_int_pair node) |
void |
add_similar_torrent(sha1_hash ih) |
void |
add_tracker(java.lang.String url,
int tier) |
void |
add_url_seed(java.lang.String url) |
void |
delete() |
file_storage |
files() |
protected void |
finalize() |
entry |
generate() |
protected static long |
getCPtr(create_torrent obj) |
sha1_hash_vector |
merkle_tree() |
int |
num_pieces() |
int |
piece_length() |
int |
piece_size(int i) |
boolean |
priv() |
void |
set_comment(java.lang.String str) |
void |
set_creator(java.lang.String str) |
void |
set_file_hash(int index,
sha1_hash h) |
void |
set_hash(int index,
sha1_hash h) |
void |
set_priv(boolean p) |
void |
set_root_cert2(byte_vector pem) |
protected transient boolean swigCMemOwn
public static final create_flags_t optimize_alignment
public static final create_flags_t merkle
public static final create_flags_t modification_time
public static final create_flags_t symlinks
public static final create_flags_t mutable_torrent_support
protected create_torrent(long cPtr,
boolean cMemoryOwn)
public create_torrent(file_storage fs, int piece_size, int pad_file_limit, create_flags_t flags, int alignment)
public create_torrent(file_storage fs, int piece_size, int pad_file_limit, create_flags_t flags)
public create_torrent(file_storage fs, int piece_size, int pad_file_limit)
public create_torrent(file_storage fs, int piece_size)
public create_torrent(file_storage fs)
public create_torrent(torrent_info ti)
protected static long getCPtr(create_torrent obj)
protected void finalize()
finalize in class java.lang.Objectpublic void delete()
public entry generate()
public file_storage files()
public void set_comment(java.lang.String str)
public void set_creator(java.lang.String str)
public void set_hash(int index,
sha1_hash h)
public void set_file_hash(int index,
sha1_hash h)
public void add_node(string_int_pair node)
public void set_priv(boolean p)
public boolean priv()
public int num_pieces()
public int piece_length()
public int piece_size(int i)
public sha1_hash_vector merkle_tree()
public void add_similar_torrent(sha1_hash ih)
public void add_url_seed(java.lang.String url)
public void add_http_seed(java.lang.String url)
public void add_tracker(java.lang.String url,
int tier)
public void add_collection(java.lang.String c)
public void set_root_cert2(byte_vector pem)