Package com.biglybt.core.torrent
Interface TOTorrentCreator
- All Known Implementing Classes:
TOTorrentCreatorImpl
public interface TOTorrentCreator
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(TOTorrentProgressListener listener) void
cancel()
create()
create
(boolean skip_hashing) long
void
removeListener
(TOTorrentProgressListener listener) void
setFileIsLayoutDescriptor
(boolean b) A 'layout descriptor' is a file that explicitly details the construction of the torrent from a collection of files, rather than relying on a natural file system structure.
-
Method Details
-
setFileIsLayoutDescriptor
void setFileIsLayoutDescriptor(boolean b) A 'layout descriptor' is a file that explicitly details the construction of the torrent from a collection of files, rather than relying on a natural file system structure. The file is bencoded and consists of a Map with a List- Parameters:
b
-
-
create
- Throws:
TOTorrentException
-
create
- Throws:
TOTorrentException
-
getTorrentDataSizeFromFileOrDir
- Throws:
TOTorrentException
-
cancel
void cancel() -
addListener
-
removeListener
-