public final class CommandSystem extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COMMANDS_XSTREAM |
Modifier and Type | Method and Description |
---|---|
void |
execute(String cmd)
执行一个命令
|
Map<String,Command> |
getCommands() |
Context |
getContext()
返回环境
|
static CommandSystem |
getInstance(String name) |
static CommandSystem |
getInstance(String name,
Commands commands,
OutputStream out)
获得命令执行系统实例
|
OutputStream |
getOutputStream()
获得输入流
|
int |
indentPrint(String str,
int tab) |
void |
print(String str) |
void |
println() |
void |
println(String str) |
public static final String COMMANDS_XSTREAM
public static CommandSystem getInstance(String name, Commands commands, OutputStream out)
type
- out
- public static CommandSystem getInstance(String name)
public OutputStream getOutputStream()
public Context getContext()
public void execute(String cmd)
cmd
- public void println(String str)
public void println()
public void print(String str)
public int indentPrint(String str, int tab)
Copyright © 2006–2018 TinyGroup. All rights reserved.