Package com.biglybt.pif.torrent
Interface TorrentDownloader
-
- All Known Implementing Classes:
RPTorrentDownloader
,TorrentDownloaderImpl
public interface TorrentDownloader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Torrent
download()
Downloads and prompts the user/guesses the torrent encodingTorrent
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 cookiesvalue
-- 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
-
-