Class TorrentDownloaderImpl
java.lang.Object
com.biglybt.pifimpl.local.torrent.TorrentDownloaderImpl
- All Implemented Interfaces:
TorrentDownloader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ResourceDownloader
protected boolean
private static final LogIDs
protected TorrentManagerImpl
protected String
protected boolean
protected URL
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TorrentDownloaderImpl
(TorrentManagerImpl _manager, URL _url) protected
TorrentDownloaderImpl
(TorrentManagerImpl _manager, URL _url, String _user_name, String _password) -
Method Summary
Modifier and TypeMethodDescriptiondownload()
Downloads and prompts the user/guesses the torrent encodingDownloads and tries to use the supplied encoding.private Torrent
downloadSupport
(ResourceDownloader downloader) getRequestProperty
(String key) void
setRequestProperty
(String key, Object value)
-
Field Details
-
LOGID
-
manager
-
url
-
_downloader
-
encoding_requested
protected boolean encoding_requested -
requested_encoding
-
set_encoding
protected boolean set_encoding
-
-
Constructor Details
-
TorrentDownloaderImpl
-
TorrentDownloaderImpl
protected TorrentDownloaderImpl(TorrentManagerImpl _manager, URL _url, String _user_name, String _password)
-
-
Method Details
-
download
Description copied from interface:TorrentDownloader
Downloads and prompts the user/guesses the torrent encoding- Specified by:
download
in interfaceTorrentDownloader
- Returns:
- Throws:
TorrentException
-
downloadSupport
- Throws:
TorrentException
-
download
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 interfaceTorrentDownloader
- Parameters:
encoding
- use "System" for system encoding- Returns:
- Throws:
TorrentException
-
setRequestProperty
- Specified by:
setRequestProperty
in interfaceTorrentDownloader
- Parameters:
key
- "URL_Cookie" to set cookies- Throws:
TorrentException
-
getRequestProperty
- Specified by:
getRequestProperty
in interfaceTorrentDownloader
- Parameters:
key
- "URL_Cookie" to get cookies- Returns:
- Throws:
TorrentException
-