org.wso2.carbon.integration.common.extensions.utils
Class InputStreamHandler

java.lang.Object
  extended by 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.


Constructor Summary
InputStreamHandler(String name, InputStream is)
           
 
Method Summary
 String getOutput()
           
 void run()
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamHandler

public InputStreamHandler(String name,
                          InputStream is)
Method Detail

start

public void start()

run

public void run()
Specified by:
run in interface Runnable

getOutput

public String getOutput()


Copyright © 2015 WSO2. All rights reserved.