Class create_torrent
java.lang.Object
com.frostwire.jlibtorrent.swig.create_torrent
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final create_flags_tstatic final create_flags_tstatic final create_flags_tstatic final create_flags_tstatic final create_flags_tprotected booleanstatic final create_flags_tstatic final create_flags_tstatic final create_flags_t -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedcreate_torrent(long cPtr, boolean cMemoryOwn) create_torrent(file_storage fs, int piece_size) create_torrent(file_storage fs, int piece_size, create_flags_t flags) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidadd_http_seed(String url) voidadd_node(string_int_pair node) voidvoidadd_tracker(String url) voidadd_tracker(String url, int tier) voidadd_url_seed(String url) voiddelete()intend_file()intfiles()generate()protected static longgetCPtr(create_torrent obj) booleanbooleanintintintpiece_size(int i) booleanpriv()voidset_comment(String str) voidset_creation_date(long timestamp) voidset_creator(String str) voidvoidset_hash2(int file, int piece, sha256_hash h) voidset_priv(boolean p) voidprotected static longlong
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn -
modification_time
-
symlinks
-
v2_only
-
v1_only
-
canonical_files
-
no_attributes
-
canonical_files_no_tail_padding
-
allow_odd_piece_size
-
-
Constructor Details
-
create_torrent
protected create_torrent(long cPtr, boolean cMemoryOwn) -
create_torrent
-
create_torrent
-
create_torrent
-
create_torrent
-
-
Method Details
-
getCPtr
-
swigRelease
-
delete
public void delete() -
generate
-
files
-
set_comment
-
set_creator
-
set_creation_date
public void set_creation_date(long timestamp) -
set_hash
-
add_node
-
set_priv
public void set_priv(boolean p) -
priv
public boolean priv() -
is_v2_only
public boolean is_v2_only() -
is_v1_only
public boolean is_v1_only() -
num_pieces
public int num_pieces() -
end_piece
public int end_piece() -
end_file
public int end_file() -
total_size
public long total_size() -
piece_length
public int piece_length() -
piece_size
public int piece_size(int i) -
add_similar_torrent
-
add_url_seed
-
add_http_seed
-
add_tracker
-
add_tracker
-
add_collection
-
set_root_cert2
-
set_hash2
-