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

📄 namespacecommand.java

📁 纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统
💻 JAVA
字号:
/*
 * $Id: NamespaceCommand.java,v 1.2 2004/01/21 16:06:12 epr Exp $
 */
package org.jnode.shell.command;

import java.io.InputStream;
import java.io.PrintStream;
import java.util.Iterator;
import java.util.Set;

import org.jnode.naming.InitialNaming;
import org.jnode.shell.CommandLine;
import org.jnode.shell.help.*;

/**
 * @author epr
 */
public class NamespaceCommand {

        public static Help.Info HELP_INFO = new Help.Info(
		"namespace",
		"Print the contents of the system namespace"
	);

	public static void main(String[] args)
	throws Exception {
		new NamespaceCommand().execute(new CommandLine(args), System.in, System.out, System.err);
	}

	/**
	 * Execute this command
	 */
	public void execute(
		CommandLine cmdLine,
		InputStream in,
		PrintStream out,
		PrintStream err)
		throws Exception {
			
		Set names = InitialNaming.nameSet();
		for (Iterator i = names.iterator(); i.hasNext(); ) {
			final Object name = i.next();
			out.println(name);
		}
	}

}

⌨️ 快捷键说明

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