public interface CommandSession
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this command session.
|
Object |
convert(Class<?> type,
Object instance)
Convert an object to another type.
|
Object |
execute(CharSequence commandline)
Execute a program in this session.
|
CharSequence |
format(Object target,
int level)
Convert an object to string form (CharSequence).
|
Object |
get(String name)
Get the value of a variable.
|
PrintStream |
getConsole()
Return the PrintStream for the console.
|
InputStream |
getKeyboard()
Return the input stream that is the first of the pipeline.
|
void |
put(String name,
Object value)
Set the value of a variable.
|
Object execute(CharSequence commandline) throws Exception
commandline
- Exception
void close()
- InputStream getKeyboard()
PrintStream getConsole()
void put(String name, Object value)
name
- Name of the variable.value
- Value of the variableCharSequence format(Object target, int level)
target
- level
- Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.