public class ExternalProcess extends Object implements Closeable
| Constructor and Description |
|---|
ExternalProcess(long timeout,
String... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
read(Pattern resultPattern,
Pattern... errorPatterns) |
void |
write(String text) |
public ExternalProcess(long timeout,
String... args)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void write(String text) throws IOException
IOExceptionpublic String read(Pattern resultPattern, Pattern... errorPatterns) throws IOException
IOExceptionCopyright © 2016. All Rights Reserved.