All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.awb.util.TeeOutputStream

java.lang.Object
   |
   +----java.io.OutputStream
           |
           +----com.ibm.awb.util.TeeOutputStream

public class TeeOutputStream
extends OutputStream
TeeOutputStream is java stream variant of "tee" command. It despatch its content to two independent stream objects.


Constructor Index

 o TeeOutputStream(OutputStream, OutputStream)

Method Index

 o close()
Closes the stream.
 o flush()
Flushes the stream.
 o write(byte[])
 o write(byte[], int, int)
 o write(int)

Constructors

 o TeeOutputStream
 public TeeOutputStream(OutputStream out1,
                        OutputStream out2)

Methods

 o write
 public synchronized void write(int b) throws IOException
Parameters:
b - the byte
Throws: IOException
If an I/O error has occurred.
Overrides:
write in class OutputStream
 o write
 public synchronized void write(byte b[]) throws IOException
Parameters:
b - the data to be written
Throws: IOException
If an I/O error has occurred.
Overrides:
write in class OutputStream
 o write
 public synchronized void write(byte b[],
                                int off,
                                int len) throws IOException
Parameters:
b - the data to be written
off - the start offset in the data
len - the number of bytes that are written
Throws: IOException
If an I/O error has occurred.
Overrides:
write in class OutputStream
 o flush
 public synchronized void flush() throws IOException
Flushes the stream. This will write any buffered output bytes.

Throws: IOException
If an I/O error has occurred.
Overrides:
flush in class OutputStream
 o close
 public synchronized void close() throws IOException
Closes the stream. This method must be called to release any resources associated with the stream.

Throws: IOException
If an I/O error has occurred.
Overrides:
close in class OutputStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index