|
Knopflerfish OSGi 5.2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CommandSession
A Command Session holds the executable state of a script engine as well as the keyboard and console streams. A Command Session is not thread safe and should not be used from different threads at the same time. TODO The javadoc in this class need a good scrub before release.
| Method Summary | |
|---|---|
void |
close()
Close this command session. |
java.lang.Object |
convert(java.lang.Class type,
java.lang.Object instance)
Convert an object to another type. |
java.lang.Object |
execute(java.lang.CharSequence commandline)
Execute a program in this session. |
java.lang.Object |
execute(java.lang.CharSequence commandline,
java.io.InputStream in,
java.io.PrintStream out,
java.io.PrintStream err)
Execute a program in this session but override the different streams for this call only. |
java.lang.CharSequence |
format(java.lang.Object target,
int level)
Convert an object to string form (CharSequence). |
java.lang.Object |
get(java.lang.String name)
Get the value of a variable. |
java.io.PrintStream |
getConsole()
Return the PrintStream for the console. |
java.io.InputStream |
getKeyboard()
Return the input stream that is the first of the pipeline. |
void |
put(java.lang.String name,
java.lang.Object value)
Set the value of a variable. |
| Method Detail |
|---|
java.lang.Object execute(java.lang.CharSequence commandline)
throws java.lang.Exception
commandline - ###
java.lang.Exception - ###
java.lang.Object execute(java.lang.CharSequence commandline,
java.io.InputStream in,
java.io.PrintStream out,
java.io.PrintStream err)
throws java.lang.Exception
commandline - in - ###out - ###err - ###
java.lang.Exception - ###void close()
java.io.InputStream getKeyboard()
java.io.PrintStream getConsole()
java.lang.Object get(java.lang.String name)
name - ###
void put(java.lang.String name,
java.lang.Object value)
name - Name of the variable.value - Value of the variable
java.lang.CharSequence format(java.lang.Object target,
int level)
target - level -
java.lang.Object convert(java.lang.Class type,
java.lang.Object instance)
type - ###instance - ###
|
Knopflerfish OSGi 5.2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||