Public Member Functions | |
Native (AbstractConsoleModule module) | |
void | parse (String commandText) throws Exception |
String | getCommandName () |
String | getCommandDescription () |
void | execute (String commandText) throws Exception |
Definition at line 39 of file Native.java.
|
Creates a new
Definition at line 47 of file Native.java. 00048 { 00049 super(module); 00050 }
|
|
Reimplemented from org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 80 of file Native.java. References org.objectweb.cjdbc.console.text.Console.println(). 00081 { 00082 Runtime rt = Runtime.getRuntime(); 00083 Process proc = rt.exec(commandText.trim()); 00084 proc.waitFor(); 00085 BufferedReader in = new BufferedReader(new InputStreamReader(proc 00086 .getInputStream())); 00087 String line; 00088 while ((line = in.readLine()) != null) 00089 console.println(ConsoleTranslate.get("console.command.native.output", 00090 line)); 00091 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 72 of file Native.java. 00073 { 00074 return ConsoleTranslate.get("console.command.native"); 00075 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 64 of file Native.java. 00065 { 00066 return "native"; 00067 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 55 of file Native.java. 00056 { 00057 // not used 00058 // see execute 00059 }
|