com.go.trove.io
Class DualOutput

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--com.go.trove.io.DualOutput
Direct Known Subclasses:
DualOutput

public class DualOutput
extends java.io.OutputStream

DualOutput wraps two OutputStreams so they can be written to simultaneously. This is handy for writing to a file and a class injector at the same time.

Version:
4 21 12/11/00
Author:
Brian S O'Neill
See Also:
ClassInjector

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

Constructor Detail

DualOutput

public DualOutput(java.io.OutputStream out1,
                  java.io.OutputStream out2)
Method Detail

write

public void write(int b)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream

flush

public void flush()
           throws java.io.IOException
Overrides:
flush in class java.io.OutputStream

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.io.OutputStream