org.apache.tapestry.util.io
Class TeeOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.apache.tapestry.util.io.TeeOutputStream

public class TeeOutputStream
extends java.io.OutputStream

An output stream that copies bytes pushed through it to two other output streams.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
TeeOutputStream(java.io.OutputStream os1, java.io.OutputStream os2)
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeeOutputStream

public TeeOutputStream(java.io.OutputStream os1,
                       java.io.OutputStream os2)
Method Detail

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(byte[] b)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Throws:
java.io.IOException