net.sf.jnati.proc
Class TeeOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by net.sf.jnati.proc.TeeOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class TeeOutputStream
extends OutputStream

Author:
Sam Adams

Constructor Summary
TeeOutputStream(OutputStream... streams)
           
 
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(OutputStream... streams)
Method Detail

close

public void close()
           throws TeeStreamException
Specified by:
close in interface Closeable
Overrides:
close in class OutputStream
Throws:
TeeStreamException

flush

public void flush()
           throws TeeStreamException
Specified by:
flush in interface Flushable
Overrides:
flush in class OutputStream
Throws:
TeeStreamException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws TeeStreamException
Overrides:
write in class OutputStream
Throws:
TeeStreamException

write

public void write(byte[] b)
           throws TeeStreamException
Overrides:
write in class OutputStream
Throws:
TeeStreamException

write

public void write(int b)
           throws TeeStreamException
Specified by:
write in class OutputStream
Throws:
TeeStreamException


Copyright © 2007-2011 Sam Adams. All Rights Reserved.