aQute.libg.command
Class Command
java.lang.Object
aQute.libg.command.Command
public class Command
- extends java.lang.Object
|
Method Summary |
void |
add(java.lang.String... args)
|
void |
addAll(java.util.Collection<java.lang.String> args)
|
void |
cancel()
|
int |
execute(java.lang.Appendable stdout,
java.lang.Appendable stderr)
|
int |
execute(java.io.InputStream in,
java.lang.Appendable stdout,
java.lang.Appendable stderr)
|
int |
execute(java.lang.String input,
java.lang.Appendable stdout,
java.lang.Appendable stderr)
|
void |
setCwd(java.io.File dir)
|
void |
setReporter(Reporter reporter)
|
void |
setTimeout(long duration,
java.util.concurrent.TimeUnit unit)
|
void |
setTrace()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Command
public Command()
execute
public int execute(java.lang.Appendable stdout,
java.lang.Appendable stderr)
throws java.lang.Exception
- Throws:
java.lang.Exception
execute
public int execute(java.lang.String input,
java.lang.Appendable stdout,
java.lang.Appendable stderr)
throws java.lang.Exception
- Throws:
java.lang.Exception
execute
public int execute(java.io.InputStream in,
java.lang.Appendable stdout,
java.lang.Appendable stderr)
throws java.lang.Exception
- Throws:
java.lang.Exception
add
public void add(java.lang.String... args)
addAll
public void addAll(java.util.Collection<java.lang.String> args)
setTimeout
public void setTimeout(long duration,
java.util.concurrent.TimeUnit unit)
setTrace
public void setTrace()
setReporter
public void setReporter(Reporter reporter)
setCwd
public void setCwd(java.io.File dir)
cancel
public void cancel()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object