public class CommandExecutor extends Object
| Constructor and Description |
|---|
CommandExecutor(String command) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
int |
exitValue() |
void |
finishedReading() |
void |
finishedWriting() |
BufferedReader |
getBufferedReader() |
static void |
maain(String[] args) |
static void |
main(String[] args) |
static void |
pipe(InputStream in,
OutputStream out) |
static void |
test() |
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 finishedWriting()
throws IOException
IOExceptionpublic void finishedReading()
throws IOException
IOExceptionpublic BufferedReader getBufferedReader()
public static void pipe(InputStream in, OutputStream out)
public static void test()
public static void main(String[] args)
public static void maain(String[] args) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2017. All Rights Reserved.