org.gudy.azureus2.pluginsimpl.local.torrent
Class TorrentDownloaderImpl
java.lang.Object
org.gudy.azureus2.pluginsimpl.local.torrent.TorrentDownloaderImpl
- All Implemented Interfaces:
- TorrentDownloader
public class TorrentDownloaderImpl
- extends Object
- implements TorrentDownloader
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
manager
protected TorrentManagerImpl manager
url
protected URL url
_downloader
protected ResourceDownloader _downloader
encoding_requested
protected boolean encoding_requested
requested_encoding
protected String requested_encoding
set_encoding
protected boolean set_encoding
TorrentDownloaderImpl
protected TorrentDownloaderImpl(TorrentManagerImpl _manager,
URL _url)
TorrentDownloaderImpl
protected TorrentDownloaderImpl(TorrentManagerImpl _manager,
URL _url,
String _user_name,
String _password)
download
public Torrent download()
throws TorrentException
- Description copied from interface:
TorrentDownloader
- Downloads and prompts the user/guesses the torrent encoding
- Specified by:
download
in interface TorrentDownloader
- Returns:
-
- Throws:
TorrentException
download
public Torrent download(String encoding)
throws TorrentException
- Description copied from interface:
TorrentDownloader
- Downloads and tries to use the supplied encoding. If the supplied encoding isn't
valed then a TorrentEncodingException is thrown detailing the valid ones
- Specified by:
download
in interface TorrentDownloader
- Parameters:
encoding
- use "System" for system encoding
- Returns:
-
- Throws:
TorrentException
setRequestProperty
public void setRequestProperty(String key,
Object value)
throws TorrentException
- Specified by:
setRequestProperty
in interface TorrentDownloader
- Parameters:
key
- "URL_Cookie" to set cookies
- Throws:
TorrentException
getRequestProperty
public Object getRequestProperty(String key)
throws TorrentException
- Specified by:
getRequestProperty
in interface TorrentDownloader
- Parameters:
key
- "URL_Cookie" to get cookies
- Returns:
-
- Throws:
TorrentException