org.gudy.azureus2.core3.torrent.impl
Class TOTorrentCreatorImpl
java.lang.Object
org.gudy.azureus2.core3.torrent.impl.TOTorrentCreatorImpl
- All Implemented Interfaces:
- TOTorrentCreator
public class TOTorrentCreatorImpl
- extends java.lang.Object
- implements TOTorrentCreator
Constructor Summary |
TOTorrentCreatorImpl(java.io.File _torrent_base)
|
TOTorrentCreatorImpl(java.io.File _torrent_base,
java.net.URL _announce_url,
boolean _add_other_hashes,
long _piece_length)
|
TOTorrentCreatorImpl(java.io.File _torrent_base,
java.net.URL _announce_url,
boolean _add_other_hashes,
long _piece_min_size,
long _piece_max_size,
long _piece_num_lower,
long _piece_num_upper)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TOTorrentCreatorImpl
public TOTorrentCreatorImpl(java.io.File _torrent_base)
TOTorrentCreatorImpl
public TOTorrentCreatorImpl(java.io.File _torrent_base,
java.net.URL _announce_url,
boolean _add_other_hashes,
long _piece_length)
throws TOTorrentException
- Throws:
TOTorrentException
TOTorrentCreatorImpl
public TOTorrentCreatorImpl(java.io.File _torrent_base,
java.net.URL _announce_url,
boolean _add_other_hashes,
long _piece_min_size,
long _piece_max_size,
long _piece_num_lower,
long _piece_num_upper)
throws TOTorrentException
- Throws:
TOTorrentException
setFileIsLayoutDescriptor
public void setFileIsLayoutDescriptor(boolean b)
- Description copied from interface:
TOTorrentCreator
- 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
create
public TOTorrent create()
throws TOTorrentException
- Specified by:
create
in interface TOTorrentCreator
- Throws:
TOTorrentException
getTorrentDataSizeFromFileOrDir
public long getTorrentDataSizeFromFileOrDir()
throws TOTorrentException
- Specified by:
getTorrentDataSizeFromFileOrDir
in interface TOTorrentCreator
- Throws:
TOTorrentException
cancel
public void cancel()
- Specified by:
cancel
in interface TOTorrentCreator
addListener
public void addListener(TOTorrentProgressListener listener)
- Specified by:
addListener
in interface TOTorrentCreator
removeListener
public void removeListener(TOTorrentProgressListener listener)
- Specified by:
removeListener
in interface TOTorrentCreator