Class TorrentDownloaderFactory
java.lang.Object
com.biglybt.core.torrentdownloader.TorrentDownloaderFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TorrentDownloadercreate(TorrentDownloaderCallBackInterface callback, String url, String referrer, Map request_properties, String fileordir) creates and initializes a TorrentDownloader object with the specified parameters.static TorrentDownloaderdownloadManaged(String url) static TorrentDownloaderdownloadManaged(String url, String fileordir) static TorrentDownloaderdownloadToLocationManaged(String url, String save_path) static voidinitManager(GlobalManager gm, boolean autostart)
-
Constructor Details
-
TorrentDownloaderFactory
public TorrentDownloaderFactory()
-
-
Method Details
-
create
public static TorrentDownloader create(TorrentDownloaderCallBackInterface callback, String url, String referrer, Map request_properties, String fileordir) creates and initializes a TorrentDownloader object with the specified parameters. NOTE: this does not actually start the TorrentDownloader object- Parameters:
callback- object to notify about torrent download statusurl- url of torrent file to downloadreferrer- url of referrer to set as HTTP_REFERER header when requesting torrentfileordir- path to a file or directory that the actual torrent file should be saved to. if a default save directory is not specified, this will be used instead. even if a default save directory is specified, if this parameter path refers to a file, the filename will be used when saving the torrent- Returns:
-
initManager
-
downloadManaged
-
downloadManaged
-
downloadToLocationManaged
-