Class StreamPipe

java.lang.Object

com.knowgate.dfs.StreamPipe

public class StreamPipe
extends java.lang.Object

This class links input and output streams so that data taken from input
stream is transfered to the output stream. This class can be used to
connect standard input/ouput stream of Java application with
output/input streams of spawned child process, so that all user's input is
redirected to the child and all it's output is visible for the user.

This class starts a thread, which transfers data from input stream to
output stream until End Of File is reached or IOException caused by IO
error is catched.