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

📄 rpdownloadstats.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:   RPDownloadStats.java

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

import org.gudy.azureus2.plugins.download.DownloadStats;
import org.gudy.azureus2.pluginsimpl.remote.*;

public class RPDownloadStats extends RPObject
	implements DownloadStats
{

	protected transient DownloadStats delegate;
	public long downloaded;
	public long uploaded;
	public int completed;
	public int downloadCompletedLive;
	public int downloadCompletedStored;
	public String status;
	public String status_localised;
	public long upload_average;
	public long download_average;
	public String eta;
	public int share_ratio;
	public float availability;
	public int health;

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

	protected RPDownloadStats(DownloadStats _delegate)
	{
		super(_delegate);
	}

	protected void _setDelegate(Object _delegate)
	{
		delegate = (DownloadStats)_delegate;
		downloaded = delegate.getDownloaded();
		uploaded = delegate.getUploaded();
		completed = delegate.getCompleted();
		downloadCompletedLive = delegate.getDownloadCompleted(true);
		downloadCompletedStored = delegate.getDownloadCompleted(false);
		status = delegate.getStatus();
		status_localised = delegate.getStatus(true);
		upload_average = delegate.getUploadAverage();
		download_average = delegate.getDownloadAverage();
		eta = delegate.getETA();
		share_ratio = delegate.getShareRatio();
		availability = delegate.getAvailability();
		health = delegate.getHealth();
	}

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

	public RPReply _process(RPRequest request)
	{
		String method = request.getMethod();
		throw new RPException((new StringBuilder()).append("Unknown method: ").append(method).toString());
	}

	public String getStatus()
	{
		return status;
	}

	public String getStatus(boolean localised)
	{
		return localised ? status_localised : status;
	}

	public String getDownloadDirectory()
	{
		notSupported();
		return null;
	}

	public String getTargetFileOrDir()
	{
		notSupported();
		return null;
	}

	public String getTrackerStatus()
	{
		notSupported();
		return null;
	}

	public int getCompleted()
	{
		return completed;
	}

	public int getDownloadCompleted(boolean bLive)
	{
		return bLive ? downloadCompletedLive : downloadCompletedStored;
	}

	public int getCheckingDoneInThousandNotation()
	{
		notSupported();
		return 0;
	}

	public long getDownloaded()
	{
		return downloaded;
	}

	public long getUploaded()
	{
		return uploaded;
	}

	public long getRemaining()
	{
		notSupported();
		return 0L;
	}

	public long getDiscarded()
	{
		notSupported();
		return 0L;
	}

	public long getDownloadAverage()
	{
		return download_average;
	}

	public long getUploadAverage()
	{
		return upload_average;
	}

	public long getTotalAverage()
	{
		notSupported();
		return 0L;
	}

	public String getElapsedTime()
	{
		notSupported();
		return null;
	}

	public String getETA()
	{
		return eta;
	}

	public long getHashFails()
	{
		notSupported();
		return 0L;
	}

	public int getShareRatio()
	{
		return share_ratio;
	}

	public long getTimeStarted()
	{
		notSupported();
		return 0L;
	}

	public float getAvailability()
	{
		return availability;
	}

	public long getSecondsDownloading()
	{
		notSupported();
		return 0L;
	}

	public long getSecondsOnlySeeding()
	{
		notSupported();
		return 0L;
	}

	public long getTimeStartedSeeding()
	{
		notSupported();
		return 0L;
	}

	public long getSecondsSinceLastDownload()
	{
		notSupported();
		return 0L;
	}

	public long getSecondsSinceLastUpload()
	{
		notSupported();
		return 0L;
	}

	public int getHealth()
	{
		return health;
	}
}

⌨️ 快捷键说明

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