public class CommandExecutor extends Object
| Constructor and Description |
|---|
CommandExecutor(String command) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
int |
exitValue() |
void |
finished() |
BufferedReader |
getBufferedReader() |
static void |
main(String[] args) |
static void |
pipe(InputStream in,
OutputStream out) |
void |
transform(String str) |
int |
waitFor() |
public CommandExecutor(String command)
public void execute()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void transform(String str) throws IOException
IOExceptionpublic int waitFor()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic int exitValue()
throws IllegalThreadStateException
IllegalThreadStateExceptionpublic void finished()
throws IOException
IOExceptionpublic BufferedReader getBufferedReader()
public static void pipe(InputStream in, OutputStream out)
public static void main(String[] args) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2013. All Rights Reserved.