Class TorrentDownloaderFactory

java.lang.Object
com.biglybt.core.torrentdownloader.TorrentDownloaderFactory

public class TorrentDownloaderFactory extends Object
  • 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 status
      url - url of torrent file to download
      referrer - url of referrer to set as HTTP_REFERER header when requesting torrent
      fileordir - 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

      public static void initManager(GlobalManager gm, boolean autostart)
    • downloadManaged

      public static TorrentDownloader downloadManaged(String url, String fileordir)
    • downloadManaged

      public static TorrentDownloader downloadManaged(String url)
    • downloadToLocationManaged

      public static TorrentDownloader downloadToLocationManaged(String url, String save_path)