Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.console.text.commands.Native Class Reference

Inheritance diagram for org.objectweb.cjdbc.console.text.commands.Native:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.cjdbc.console.text.commands.Native:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Native (AbstractConsoleModule module)
void parse (String commandText) throws Exception
String getCommandName ()
String getCommandDescription ()
void execute (String commandText) throws Exception

Detailed Description

This class defines a Native

Author:
Nicolas Modrzyk
Version:
1.0

Definition at line 39 of file Native.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.console.text.commands.Native.Native AbstractConsoleModule  module  ) 
 

Creates a new Native.java object

Parameters:
module the command is issued from

Definition at line 47 of file Native.java.

00048   {
00049     super(module);
00050   }


Member Function Documentation

void org.objectweb.cjdbc.console.text.commands.Native.execute String  commandText  )  throws Exception
 

See also:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.execute(java.lang.String)

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   }

String org.objectweb.cjdbc.console.text.commands.Native.getCommandDescription  )  [virtual]
 

See also:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.getCommandDescription()

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   }

String org.objectweb.cjdbc.console.text.commands.Native.getCommandName  )  [virtual]
 

See also:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.getCommandName()

Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand.

Definition at line 64 of file Native.java.

00065   {
00066     return "native";
00067   }

void org.objectweb.cjdbc.console.text.commands.Native.parse String  commandText  )  throws Exception [virtual]
 

See also:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.parse(java.lang.String)

Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand.

Definition at line 55 of file Native.java.

00056   {
00057     // not used
00058     // see execute
00059   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:02:43 2005 for C-JDBC by  doxygen 1.3.9.1