Interface TOTorrentCreator
- All Known Implementing Classes:
TOTorrentCreatorImpl
public interface TOTorrentCreator
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(TOTorrentProgressListener listener) voidcancel()create()create(boolean skip_hashing) longvoidremoveListener(TOTorrentProgressListener listener) voidsetFileIsLayoutDescriptor(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
-