Methods Summary |
---|
public void | addListener(TorrentManagerListener l)
|
public Torrent | createFromBEncodedData(byte[] data)decodes a torrent encoded using the normal "bencoding" rules from a byte array
|
public Torrent | createFromBEncodedData(byte[] data, int preserve)decodes a torrent encoded using the normal "bencoding" rules from a byte array
|
public Torrent | createFromBEncodedFile(java.io.File file)decodes a torrent encoded using the normal "bencoding" rules from a file
|
public Torrent | createFromBEncodedFile(java.io.File file, boolean for_seeding)decodes a torrent encoded using the normal "bencoding" rules from a file but discards the piece
hashes to save memory. note that this means that if something reads the hashes they will be
re-read from the torrent file and if the file has since been deleted things go smelly
|
public Torrent | createFromBEncodedFile(java.io.File file, int preserve)decodes a torrent encoded using the normal "bencoding" rules from a file
|
public Torrent | createFromBEncodedInputStream(java.io.InputStream data)decodes a torrent encoded using the normal "bencoding" rules from an InputStream
|
public Torrent | createFromBEncodedInputStream(java.io.InputStream data, int preserve)decodes a torrent encoded using the normal "bencoding" rules from an InputStream
|
public Torrent | createFromDataFile(java.io.File data, java.net.URL announce_url)creates a new torrent from an input file
|
public Torrent | createFromDataFile(java.io.File data, java.net.URL announce_url, boolean include_other_hashes)
|
public TorrentCreator | createFromDataFileEx(java.io.File data, java.net.URL announce_url, boolean include_other_hashes)
|
public TorrentAttribute | getAttribute(java.lang.String name)Gives access to the standard built-in attributes
|
public TorrentAttribute[] | getDefinedAttributes()Gives access to the currently defined torrent attributes. As of 2.1.0.2
only "category" is defined, however in the future more could be added
such as "quality", "bit rate" etc.
|
public TorrentAttribute | getPluginAttribute(java.lang.String name)Gives access to/creates arbitrary String attributes for plugins to use
|
public TorrentDownloader | getURLDownloader(java.net.URL url)
|
public TorrentDownloader | getURLDownloader(java.net.URL url, java.lang.String user_name, java.lang.String password)
|
public void | removeListener(TorrentManagerListener l)
|