org.wso2.carbon.integration.common.extensions.utils
Class InputStreamHandler
java.lang.Object
org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler
- All Implemented Interfaces:
- Runnable
public class InputStreamHandler
- extends Object
- implements Runnable
This class is used to consume the input streams and error streams of the
processes created by Runtime.exec() to avoid possible deadlock situations due
to unconsumed input streams.
An instance of this class will be created for input stream and output stream
of each process and it will log those streams to the standard output.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputStreamHandler
public InputStreamHandler(String name,
InputStream is)
start
public void start()
run
public void run()
- Specified by:
run in interface Runnable
getOutput
public String getOutput()
Copyright © 2015 WSO2. All rights reserved.