|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttardate.execshell.ExecShell
public class ExecShell
Execute external process calls, with input/output handling. See also: http://www.devx.com/tips/Tip/14667 http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part3/Chapter23/runExtProg.html
| Constructor Summary | |
|---|---|
ExecShell()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
static java.lang.String |
runShellCommand(java.lang.String theCmdLine)
Run an operating system command, assumes no input |
static java.lang.String |
runShellCommand(java.lang.String[] theCmdArray)
Run an operating system command, assumes no input |
static java.lang.String |
runShellCommand(java.lang.String[] theCmdArray,
java.io.BufferedReader sendReader)
Run an operating system command with buffered command input reader |
static java.lang.String |
runShellCommand(java.lang.String[] theCmdArray,
java.io.InputStream send)
Run an operating system command with input stream |
static java.lang.String |
runShellCommand(java.lang.String[] theCmdArray,
java.lang.String send)
Run an operating system command with input string |
static java.lang.String |
runShellCommand(java.lang.String theCmdLine,
java.io.BufferedReader sendReader)
Run an operating system command with buffered command input reader |
static java.lang.String |
runShellCommand(java.lang.String theCmdLine,
java.lang.String send)
Run an operating system command with input string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExecShell()
| Method Detail |
|---|
public static java.lang.String runShellCommand(java.lang.String theCmdLine)
throws java.io.IOException
theCmdLine - command line (supports double-quoted arguements)
java.io.IOException
public static java.lang.String runShellCommand(java.lang.String theCmdLine,
java.lang.String send)
throws java.io.IOException
theCmdLine - command line (supports double-quoted arguements)send - command input
java.io.IOException
public static java.lang.String runShellCommand(java.lang.String theCmdLine,
java.io.BufferedReader sendReader)
throws java.io.IOException
theCmdLine - command line (supports double-quoted arguements)sendReader - buffered command input stream
java.io.IOException
public static java.lang.String runShellCommand(java.lang.String[] theCmdArray)
throws java.io.IOException
theCmdArray - command line arguements
java.io.IOException
public static java.lang.String runShellCommand(java.lang.String[] theCmdArray,
java.lang.String send)
throws java.io.IOException
theCmdArray - command line arguementssend - command input
java.io.IOException
public static java.lang.String runShellCommand(java.lang.String[] theCmdArray,
java.io.InputStream send)
throws java.io.IOException
theCmdArray - command line arguementssend - command input stream
java.io.IOException
public static java.lang.String runShellCommand(java.lang.String[] theCmdArray,
java.io.BufferedReader sendReader)
throws java.io.IOException
theCmdArray - command line arguementssendReader - buffered command input stream
java.io.IOExceptionpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||