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

📄 xml.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:   XML.java

package org.gudy.azureus2.ui.console.commands;

import java.io.FileOutputStream;
import java.io.PrintStream;
import java.util.List;
import org.gudy.azureus2.core3.stats.StatsWriterFactory;
import org.gudy.azureus2.core3.stats.StatsWriterStreamer;
import org.gudy.azureus2.ui.console.ConsoleInput;

// Referenced classes of package org.gudy.azureus2.ui.console.commands:
//			IConsoleCommand

public class XML extends IConsoleCommand
{

	public XML()
	{
		super("xml");
	}

	public String getCommandDescriptions()
	{
		return "xml [<file>]\t\t\t\tOutput stats in xml format (to <file> if given)";
	}

	public void execute(String commandName, ConsoleInput ci, List args)
	{
		StatsWriterStreamer sws;
		String file;
		Exception e;
		sws = StatsWriterFactory.createStreamer(ci.getCore());
		file = null;
		if (args != null && !args.isEmpty())
			file = (String)args.get(0);
		if (file == null)
		{
			try
			{
				ci.out.println("> -----");
				sws.write(ci.out);
				ci.out.println("> -----");
			}
			// Misplaced declaration of an exception variable
			catch (Exception e)
			{
				ci.out.println((new StringBuilder()).append("> Exception while trying to output xml stats:").append(e.getMessage()).toString());
			}
			break MISSING_BLOCK_LABEL_209;
		}
		FileOutputStream os = new FileOutputStream(file);
		sws.write(os);
		os.close();
		break MISSING_BLOCK_LABEL_147;
		Exception exception;
		exception;
		os.close();
		throw exception;
		ci.out.println((new StringBuilder()).append("> XML stats successfully written to ").append(file).toString());
		break MISSING_BLOCK_LABEL_209;
		os;
		ci.out.println((new StringBuilder()).append("> Exception while trying to write xml stats:").append(os.getMessage()).toString());
	}
}

⌨️ 快捷键说明

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