org.gudy.azureus2.plugins.torrent
Interface TorrentDownloader

All Known Implementing Classes:
RPTorrentDownloader, TorrentDownloaderImpl

public interface TorrentDownloader

Author:
parg

Method Summary
 Torrent download()
          Downloads and prompts the user/guesses the torrent encoding
 Torrent download(java.lang.String encoding)
          Downloads and tries to use the supplied encoding.
 java.lang.Object getRequestProperty(java.lang.String key)
           
 void setRequestProperty(java.lang.String key, java.lang.Object value)
           
 

Method Detail

download

Torrent download()
                 throws TorrentException
Downloads and prompts the user/guesses the torrent encoding

Returns:
Throws:
TorrentException

download

Torrent download(java.lang.String encoding)
                 throws TorrentException
Downloads and tries to use the supplied encoding. If the supplied encoding isn't valed then a TorrentEncodingException is thrown detailing the valid ones

Parameters:
encoding - use "System" for system encoding
Returns:
Throws:
TorrentException

setRequestProperty

void setRequestProperty(java.lang.String key,
                        java.lang.Object value)
                        throws TorrentException
Parameters:
key - "URL_Cookie" to set cookies
value -
Throws:
TorrentException
Since:
4.8.1.3

getRequestProperty

java.lang.Object getRequestProperty(java.lang.String key)
                                    throws TorrentException
Parameters:
key - "URL_Cookie" to get cookies
Returns:
Throws:
TorrentException