|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jkristian.cli.CommandLine
public class CommandLine
A named program and its parameters.
| Field Summary | |
|---|---|
protected java.util.List |
list
|
| Constructor Summary | |
|---|---|
CommandLine(java.lang.String line)
|
|
| Method Summary | |
|---|---|
CommandLine |
append(java.lang.String parameter)
Add a parameter to the list. |
static java.lang.String |
enquote(java.lang.String s)
Enquote a String if necessary to make it interpreted as a single string by the command line interpreter. |
java.lang.Process |
exec()
Start a process executing this command line. |
java.lang.String[] |
toArray()
Convert the command line to an array. |
java.lang.String |
toString()
Convert the command line to a String suitable for input to the command line interpreter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List list
| Constructor Detail |
|---|
public CommandLine(java.lang.String line)
line - a space-separated list, containing the program name and its
parameters. This is parsed by StringTokenizer(line), so
parameters cannot be enquoted or contain whitespace.| Method Detail |
|---|
public CommandLine append(java.lang.String parameter)
public java.lang.Process exec()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String[] toArray()
public java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String enquote(java.lang.String s)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||