|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.pluginsimpl.remote.RPObject org.gudy.azureus2.pluginsimpl.remote.torrent.RPTorrentManager
public class RPTorrentManager
Field Summary | |
---|---|
protected TorrentManager |
delegate
|
Fields inherited from class org.gudy.azureus2.pluginsimpl.remote.RPObject |
---|
__delegate, _dispatcher, _object_id, next_key, object_registry, object_registry_reverse |
Fields inherited from interface org.gudy.azureus2.plugins.torrent.TorrentManager |
---|
PRESERVE_ALL, PRESERVE_ENCODING, PRESERVE_NONE |
Constructor Summary | |
---|---|
protected |
RPTorrentManager(TorrentManager _delegate)
|
Method Summary | |
---|---|
RPReply |
_process(RPRequest request)
|
protected void |
_setDelegate(Object _delegate)
|
Object |
_setLocal()
|
void |
addListener(TorrentManagerListener l)
|
static RPTorrentManager |
create(TorrentManager _delegate)
|
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(File file)
decodes a torrent encoded using the normal "bencoding" rules from a file |
Torrent |
createFromBEncodedFile(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(File file,
int preserve)
decodes a torrent encoded using the normal "bencoding" rules from a file |
Torrent |
createFromBEncodedInputStream(InputStream data)
decodes a torrent encoded using the normal "bencoding" rules from an InputStream |
Torrent |
createFromBEncodedInputStream(InputStream data,
int preserve)
decodes a torrent encoded using the normal "bencoding" rules from an InputStream |
Torrent |
createFromDataFile(File data,
URL announce_url)
creates a new torrent from an input file |
Torrent |
createFromDataFile(File data,
URL announce_url,
boolean include_other_hashes)
|
TorrentCreator |
createFromDataFileEx(File data,
URL announce_url,
boolean include_other_hashes)
|
TorrentAttribute |
getAttribute(String name)
Gives access to the standard built-in attributes |
TorrentAttribute[] |
getDefinedAttributes()
Gives access to the currently defined torrent attributes. |
TorrentAttribute |
getPluginAttribute(String name)
Gives access to/creates arbitrary String attributes for plugins to use. |
TorrentDownloader |
getURLDownloader(URL url)
|
TorrentDownloader |
getURLDownloader(URL url,
String user_name,
String password)
|
void |
removeListener(TorrentManagerListener l)
|
Methods inherited from class org.gudy.azureus2.pluginsimpl.remote.RPObject |
---|
_fixupLocal, _getDelegate, _getName, _getOID, _lookupLocal, _lookupLocal, _refresh, _setRemote, getDispatcher, notSupported, notSupported |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient TorrentManager delegate
Constructor Detail |
---|
protected RPTorrentManager(TorrentManager _delegate)
Method Detail |
---|
public static RPTorrentManager create(TorrentManager _delegate)
protected void _setDelegate(Object _delegate)
_setDelegate
in class RPObject
public Object _setLocal() throws RPException
_setLocal
in class RPObject
RPException
public RPReply _process(RPRequest request)
_process
in class RPObject
public TorrentDownloader getURLDownloader(URL url) throws TorrentException
getURLDownloader
in interface TorrentManager
TorrentException
public TorrentDownloader getURLDownloader(URL url, String user_name, String password) throws TorrentException
getURLDownloader
in interface TorrentManager
TorrentException
public Torrent createFromBEncodedFile(File file) throws TorrentException
TorrentManager
createFromBEncodedFile
in interface TorrentManager
TorrentException
public Torrent createFromBEncodedFile(File file, boolean for_seeding) throws TorrentException
TorrentManager
createFromBEncodedFile
in interface TorrentManager
for_seeding
- reduces memory usage by discarding piece hashes
TorrentException
public Torrent createFromBEncodedInputStream(InputStream data) throws TorrentException
TorrentManager
createFromBEncodedInputStream
in interface TorrentManager
TorrentException
public Torrent createFromBEncodedData(byte[] data) throws TorrentException
TorrentManager
createFromBEncodedData
in interface TorrentManager
TorrentException
public Torrent createFromBEncodedData(byte[] data, int preserve) throws TorrentException
TorrentManager
createFromBEncodedData
in interface TorrentManager
preserve
- PRESERVE_* flags
TorrentException
public Torrent createFromBEncodedFile(File file, int preserve) throws TorrentException
TorrentManager
createFromBEncodedFile
in interface TorrentManager
preserve
- PRESERVE_* flags
TorrentException
public Torrent createFromBEncodedInputStream(InputStream data, int preserve) throws TorrentException
TorrentManager
createFromBEncodedInputStream
in interface TorrentManager
preserve
- PRESERVE_* flags
TorrentException
public Torrent createFromDataFile(File data, URL announce_url) throws TorrentException
TorrentManager
createFromDataFile
in interface TorrentManager
TorrentException
public Torrent createFromDataFile(File data, URL announce_url, boolean include_other_hashes) throws TorrentException
createFromDataFile
in interface TorrentManager
TorrentException
public TorrentCreator createFromDataFileEx(File data, URL announce_url, boolean include_other_hashes) throws TorrentException
createFromDataFileEx
in interface TorrentManager
TorrentException
public TorrentAttribute[] getDefinedAttributes()
TorrentManager
getDefinedAttributes
in interface TorrentManager
public TorrentAttribute getAttribute(String name)
TorrentManager
getAttribute
in interface TorrentManager
public TorrentAttribute getPluginAttribute(String name)
TorrentManager
getPluginAttribute
in interface TorrentManager
public void addListener(TorrentManagerListener l)
addListener
in interface TorrentManager
public void removeListener(TorrentManagerListener l)
removeListener
in interface TorrentManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |