Package com.biglybt.core.torrent
Interface TOTorrentCreator
-
- All Known Implementing Classes:
TOTorrentCreatorImpl
public interface TOTorrentCreator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(TOTorrentProgressListener listener)
void
cancel()
TOTorrent
create()
TOTorrent
create(boolean skip_hashing)
long
getTorrentDataSizeFromFileOrDir()
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 Detail
-
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
TOTorrent create() throws TOTorrentException
- Throws:
TOTorrentException
-
create
TOTorrent create(boolean skip_hashing) throws TOTorrentException
- Throws:
TOTorrentException
-
getTorrentDataSizeFromFileOrDir
long getTorrentDataSizeFromFileOrDir() throws TOTorrentException
- Throws:
TOTorrentException
-
cancel
void cancel()
-
addListener
void addListener(TOTorrentProgressListener listener)
-
removeListener
void removeListener(TOTorrentProgressListener listener)
-
-