Methods Summary |
---|
public static TorrentDownloader | create(TorrentDownloaderCallBackInterface callback, java.lang.String url, java.lang.String referrer, java.lang.String fileordir, boolean logged)creates and initializes a TorrentDownloader object with the specified parameters.
NOTE: this does not actually start the TorrentDownloader object
TorrentDownloaderImpl dl = getClass(logged);
if (dl!=null)
dl.init(callback, url, referrer, fileordir);
return dl;
|
public static TorrentDownloader | create(TorrentDownloaderCallBackInterface callback, java.lang.String url, java.lang.String referrer, java.lang.String fileordir)
return create(callback, url, referrer, fileordir, false);
|
public static TorrentDownloader | create(TorrentDownloaderCallBackInterface callback, java.lang.String url, boolean logged)
return create(callback, url, null, null, logged);
|
public static TorrentDownloader | create(TorrentDownloaderCallBackInterface callback, java.lang.String url)
return create(callback, url, null, null, false);
|
public static TorrentDownloader | create(java.lang.String url, java.lang.String fileordir, boolean logged)
return create(null, url, null, fileordir, logged);
|
public static TorrentDownloader | create(java.lang.String url, java.lang.String fileordir)
return create(null, url, null, fileordir, false);
|
public static TorrentDownloader | create(java.lang.String url, boolean logged)
return create(null, url, null, null, logged);
|
public static TorrentDownloader | create(java.lang.String url)
return create(null, url, null, null, false);
|
public static TorrentDownloader | downloadManaged(java.lang.String url, java.lang.String fileordir, boolean logged)
return TorrentDownloaderManager.getInstance().download(url, fileordir, logged);
|
public static TorrentDownloader | downloadManaged(java.lang.String url, java.lang.String fileordir)
return TorrentDownloaderManager.getInstance().download(url, fileordir);
|
public static TorrentDownloader | downloadManaged(java.lang.String url, boolean logged)
return TorrentDownloaderManager.getInstance().download(url, logged);
|
public static TorrentDownloader | downloadManaged(java.lang.String url)
return TorrentDownloaderManager.getInstance().download(url);
|
private static org.gudy.azureus2.core3.torrentdownloader.impl.TorrentDownloaderImpl | getClass(boolean logged)
try {
return (TorrentDownloaderImpl) Class.forName("org.gudy.azureus2.core3.torrentdownloader.impl.TorrentDownloader"+(logged?"Logged":"")+"Impl").newInstance();
} catch (Exception e) {
Debug.printStackTrace( e );
return null;
}
|
public static void | initManager(org.gudy.azureus2.core3.global.GlobalManager gm, boolean logged, boolean autostart, java.lang.String downloaddir)
TorrentDownloaderManager.getInstance().init(gm, logged, autostart, downloaddir);
|