public class BufferDrainer extends java.lang.Object
| Constructor and Description |
|---|
BufferDrainer(java.lang.Process process,
int maxLength) |
| Modifier and Type | Method and Description |
|---|---|
int |
drainBuffers()
Drains the inputStream and errorStream of the Process being executed.
|
java.lang.StringBuffer |
getErrorBuffer() |
java.lang.StringBuffer |
getInputBuffer() |
public BufferDrainer(java.lang.Process process, int maxLength)
process - The Process instance.maxLength - The maximum data length to be stored in these buffers. This is an indicative value, and the
store content may exceed this length.public int drainBuffers() throws java.io.IOException
java.io.IOExceptionpublic java.lang.StringBuffer getInputBuffer()
public java.lang.StringBuffer getErrorBuffer()
Copyright © 2019 Apache Software Foundation. All Rights Reserved.