public class ExternalProcess extends Object implements Closeable
| Modifier | Constructor and Description |
|---|---|
protected |
ExternalProcess(long timeout,
String... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
read(Pattern resultPattern,
Pattern... errorPatterns) |
String[] |
readForArray(Pattern resultPattern,
Pattern stopPattern,
Pattern... errorPatterns) |
void |
write(String text) |
protected 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[] readForArray(Pattern resultPattern, Pattern stopPattern, Pattern... errorPatterns) throws IOException
IOExceptionpublic String read(Pattern resultPattern, Pattern... errorPatterns) throws IOException
IOExceptionCopyright © 2016. All Rights Reserved.