| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TorrentManager
| Field Summary | |
|---|---|
static int | 
PRESERVE_ALL
Preserve all additional Attributes value is 0xffffffff;  | 
static int | 
PRESERVE_ENCODING
Preserve the encoding Attribute value is 0x00000001  | 
static int | 
PRESERVE_NONE
Preserve no additional Attributes value is 0  | 
| Method Summary | |
|---|---|
 void | 
addListener(TorrentManagerListener l)
 | 
 Torrent | 
createFromBEncodedData(byte[] data)
decodes a torrent encoded using the normal "bencoding" rules from a byte array  | 
 Torrent | 
createFromBEncodedData(byte[] data,
                       int preserve)
decodes a torrent encoded using the normal "bencoding" rules from a byte array  | 
 Torrent | 
createFromBEncodedFile(java.io.File file)
decodes a torrent encoded using the normal "bencoding" rules from a file  | 
 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.  | 
 Torrent | 
createFromBEncodedFile(java.io.File file,
                       int preserve)
decodes a torrent encoded using the normal "bencoding" rules from a file  | 
 Torrent | 
createFromBEncodedInputStream(java.io.InputStream data)
decodes a torrent encoded using the normal "bencoding" rules from an InputStream  | 
 Torrent | 
createFromBEncodedInputStream(java.io.InputStream data,
                              int preserve)
decodes a torrent encoded using the normal "bencoding" rules from an InputStream  | 
 Torrent | 
createFromDataFile(java.io.File data,
                   java.net.URL announce_url)
creates a new torrent from an input file  | 
 Torrent | 
createFromDataFile(java.io.File data,
                   java.net.URL announce_url,
                   boolean include_other_hashes)
 | 
 TorrentCreator | 
createFromDataFileEx(java.io.File data,
                     java.net.URL announce_url,
                     boolean include_other_hashes)
 | 
 TorrentAttribute | 
getAttribute(java.lang.String name)
Gives access to the standard built-in attributes  | 
 TorrentAttribute[] | 
getDefinedAttributes()
Gives access to the currently defined torrent attributes.  | 
 TorrentAttribute | 
getPluginAttribute(java.lang.String name)
Gives access to/creates arbitrary String attributes for plugins to use.  | 
 TorrentDownloader | 
getURLDownloader(java.net.URL url)
 | 
 TorrentDownloader | 
getURLDownloader(java.net.URL url,
                 java.lang.String user_name,
                 java.lang.String password)
 | 
 void | 
removeListener(TorrentManagerListener l)
 | 
| Field Detail | 
|---|
static final int PRESERVE_NONE
static final int PRESERVE_ENCODING
static final int PRESERVE_ALL
| Method Detail | 
|---|
TorrentDownloader getURLDownloader(java.net.URL url)
                                   throws TorrentException
TorrentException
TorrentDownloader getURLDownloader(java.net.URL url,
                                   java.lang.String user_name,
                                   java.lang.String password)
                                   throws TorrentException
TorrentException
Torrent createFromBEncodedFile(java.io.File file)
                               throws TorrentException
file - 
TorrentException
Torrent createFromBEncodedFile(java.io.File file,
                               boolean for_seeding)
                               throws TorrentException
file - for_seeding - reduces memory usage by discarding piece hashes
TorrentException
Torrent createFromBEncodedInputStream(java.io.InputStream data)
                                      throws TorrentException
file - 
TorrentException
Torrent createFromBEncodedData(byte[] data)
                               throws TorrentException
file - 
TorrentException
Torrent createFromBEncodedFile(java.io.File file,
                               int preserve)
                               throws TorrentException
file - preserve - PRESERVE_* flags
TorrentException
Torrent createFromBEncodedInputStream(java.io.InputStream data,
                                      int preserve)
                                      throws TorrentException
data - preserve - PRESERVE_* flags
TorrentException
Torrent createFromBEncodedData(byte[] data,
                               int preserve)
                               throws TorrentException
data - preserve - PRESERVE_* flags
TorrentException
Torrent createFromDataFile(java.io.File data,
                           java.net.URL announce_url)
                           throws TorrentException
data - 
TorrentException
Torrent createFromDataFile(java.io.File data,
                           java.net.URL announce_url,
                           boolean include_other_hashes)
                           throws TorrentException
TorrentException
TorrentCreator createFromDataFileEx(java.io.File data,
                                    java.net.URL announce_url,
                                    boolean include_other_hashes)
                                    throws TorrentException
TorrentExceptionTorrentAttribute[] getDefinedAttributes()
TorrentAttribute getAttribute(java.lang.String name)
name - 
TorrentAttribute getPluginAttribute(java.lang.String name)
name - 
void addListener(TorrentManagerListener l)
void removeListener(TorrentManagerListener l)
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||