⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rptorrentdownloader.java

📁 java 文件下载器。可自定义
💻 JAVA
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   RPTorrentDownloader.java

package org.gudy.azureus2.pluginsimpl.remote.torrent;

import org.gudy.azureus2.plugins.torrent.*;
import org.gudy.azureus2.pluginsimpl.remote.*;

// Referenced classes of package org.gudy.azureus2.pluginsimpl.remote.torrent:
//			RPTorrent

public class RPTorrentDownloader extends RPObject
	implements TorrentDownloader
{

	protected transient TorrentDownloader delegate;

	public static RPTorrentDownloader create(TorrentDownloader _delegate)
	{
		RPTorrentDownloader res = (RPTorrentDownloader)_lookupLocal(_delegate);
		if (res == null)
			res = new RPTorrentDownloader(_delegate);
		return res;
	}

	protected RPTorrentDownloader(TorrentDownloader _delegate)
	{
		super(_delegate);
	}

	protected void _setDelegate(Object _delegate)
	{
		delegate = (TorrentDownloader)_delegate;
	}

	public Object _setLocal()
		throws RPException
	{
		return _fixupLocal();
	}

	public RPReply _process(RPRequest request)
	{
		String method;
		method = request.getMethod();
		if (!method.equals("download"))
			break MISSING_BLOCK_LABEL_50;
		RPTorrent res;
		Torrent to = delegate.download();
		res = RPTorrent.create(to);
		return new RPReply(res);
		TorrentException e;
		e;
		return new RPReply(e);
		if (!method.equals("download[String]"))
			break MISSING_BLOCK_LABEL_104;
		Torrent to = delegate.download((String)request.getParams()[0]);
		res = RPTorrent.create(to);
		return new RPReply(res);
		to;
		return new RPReply(to);
		throw new RPException((new StringBuilder()).append("Unknown method: ").append(method).toString());
	}

	public Torrent download()
		throws TorrentException
	{
		RPTorrent resp;
		resp = (RPTorrent)_dispatcher.dispatch(new RPRequest(this, "download", null)).getResponse();
		resp._setRemote(_dispatcher);
		return resp;
		RPException e;
		e;
		if (e.getCause() instanceof TorrentException)
			throw (TorrentException)e.getCause();
		else
			throw e;
	}

	public Torrent download(String encoding)
		throws TorrentException
	{
		RPTorrent resp;
		resp = (RPTorrent)_dispatcher.dispatch(new RPRequest(this, "download[String]", new Object[] {
			encoding
		})).getResponse();
		resp._setRemote(_dispatcher);
		return resp;
		RPException e;
		e;
		if (e.getCause() instanceof TorrentException)
			throw (TorrentException)e.getCause();
		else
			throw e;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -