org.apache.commons.launcher

Class StreamConnector

public class StreamConnector extends Thread

A class for connecting an OutputStream to an InputStream.

Author: Patrick Luby

Constructor Summary
StreamConnector(InputStream is, OutputStream os)
Specify the streams that this object will connect in the {@link #run()} method.
Method Summary
voidrun()
Connect the InputStream and OutputStream objects specified in the {@link #StreamConnector(InputStream, OutputStream)} constructor.

Constructor Detail

StreamConnector

public StreamConnector(InputStream is, OutputStream os)
Specify the streams that this object will connect in the {@link #run()} method.

Parameters: is the InputStream to read from. os the OutputStream to write to.

Method Detail

run

public void run()
Connect the InputStream and OutputStream objects specified in the {@link #StreamConnector(InputStream, OutputStream)} constructor.
Copyright (c) 2001-2002 - Apache Software Foundation