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

📄 rptorrentmanager.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:   RPTorrentManager.java

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

import java.io.File;
import java.io.InputStream;
import java.net.URL;
import org.gudy.azureus2.plugins.torrent.*;
import org.gudy.azureus2.pluginsimpl.remote.*;

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

public class RPTorrentManager extends RPObject
	implements TorrentManager
{

	protected transient TorrentManager delegate;

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

	protected RPTorrentManager(TorrentManager _delegate)
	{
		super(_delegate);
	}

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

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

	public RPReply _process(RPRequest request)
	{
		String method;
		Object params[];
		method = request.getMethod();
		params = request.getParams();
		if (!method.equals("getURLDownloader[URL]"))
			break MISSING_BLOCK_LABEL_65;
		RPTorrentDownloader res;
		TorrentDownloader dl = delegate.getURLDownloader((URL)params[0]);
		res = RPTorrentDownloader.create(dl);
		return new RPReply(res);
		TorrentException e;
		e;
		return new RPReply(e);
		if (!method.equals("getURLDownloader[URL,String,String]"))
			break MISSING_BLOCK_LABEL_132;
		TorrentDownloader dl = delegate.getURLDownloader((URL)params[0], (String)params[1], (String)params[2]);
		res = RPTorrentDownloader.create(dl);
		return new RPReply(res);
		dl;
		return new RPReply(dl);
		if (!method.equals("createFromBEncodedData[byte[]]"))
			break MISSING_BLOCK_LABEL_182;
		return new RPReply(RPTorrent.create(delegate.createFromBEncodedData((byte[])(byte[])params[0])));
		dl;
		return new RPReply(dl);
		throw new RPException((new StringBuilder()).append("Unknown method: ").append(method).toString());
	}

	public TorrentDownloader getURLDownloader(URL url)
		throws TorrentException
	{
		RPTorrentDownloader resp;
		resp = (RPTorrentDownloader)_dispatcher.dispatch(new RPRequest(this, "getURLDownloader[URL]", new Object[] {
			url
		})).getResponse();
		resp._setRemote(_dispatcher);
		return resp;
		RPException e;
		e;
		if (e.getCause() instanceof TorrentException)
			throw (TorrentException)e.getCause();
		else
			throw e;
	}

	public TorrentDownloader getURLDownloader(URL url, String user_name, String password)
		throws TorrentException
	{
		RPTorrentDownloader resp;
		resp = (RPTorrentDownloader)_dispatcher.dispatch(new RPRequest(this, "getURLDownloader[URL,String,String]", new Object[] {
			url, user_name, password
		})).getResponse();
		resp._setRemote(_dispatcher);
		return resp;
		RPException e;
		e;
		if (e.getCause() instanceof TorrentException)
			throw (TorrentException)e.getCause();
		else
			throw e;
	}

	public Torrent createFromBEncodedFile(File file)
		throws TorrentException
	{
		notSupported();
		return null;
	}

	public Torrent createFromBEncodedFile(File file, boolean for_seeding)
		throws TorrentException
	{
		notSupported();
		return null;
	}

	public Torrent createFromBEncodedInputStream(InputStream data)
		throws TorrentException
	{
		notSupported();
		return null;
	}

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

	public Torrent createFromBEncodedData(byte data[], int preserve)
		throws TorrentException
	{
		notSupported();
		return null;
	}

	public Torrent createFromBEncodedFile(File file, int preserve)
		throws TorrentException
	{
		notSupported();
		return null;
	}

	public Torrent createFromBEncodedInputStream(InputStream data, int preserve)
		throws TorrentException
	{
		notSupported();
		return null;
	}

	public Torrent createFromDataFile(File data, URL announce_url)
		throws TorrentException
	{
		notSupported();
		return null;
	}

	public Torrent createFromDataFile(File data, URL announce_url, boolean include_other_hashes)
		throws TorrentException
	{
		notSupported();
		return null;
	}

	public TorrentCreator createFromDataFileEx(File data, URL announce_url, boolean include_other_hashes)
		throws TorrentException
	{
		notSupported();
		return null;
	}

	public TorrentAttribute[] getDefinedAttributes()
	{
		notSupported();
		return null;
	}

	public TorrentAttribute getAttribute(String name)
	{
		notSupported();
		return null;
	}

	public TorrentAttribute getPluginAttribute(String name)
	{
		notSupported();
		return null;
	}

	public void addListener(TorrentManagerListener l)
	{
		notSupported();
	}

	public void removeListener(TorrentManagerListener l)
	{
		notSupported();
	}
}

⌨️ 快捷键说明

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