org.apache.servicemix.jbi.util
Class MultiplexOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.servicemix.jbi.util.MultiplexOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class MultiplexOutputStream
extends OutputStream

Write to multiple OutputStreams

Version:
$Revision: 564607 $

Constructor Summary
MultiplexOutputStream()
           
 
Method Summary
 void add(OutputStream os)
          Add an Output Stream
 void close()
          close
 void flush()
          flush
 void remove(OutputStream os)
          Remove an OutputStream
 void write(byte[] b, int off, int len)
          write an array
 void write(int b)
          write a byte
 
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

MultiplexOutputStream

public MultiplexOutputStream()
Method Detail

add

public void add(OutputStream os)
Add an Output Stream

Parameters:
os -

remove

public void remove(OutputStream os)
Remove an OutputStream

Parameters:
os -

write

public void write(int b)
           throws IOException
write a byte

Specified by:
write in class OutputStream
Parameters:
b -
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
write an array

Overrides:
write in class OutputStream
Parameters:
b -
off -
len -
Throws:
IOException

flush

public void flush()
           throws IOException
flush

Specified by:
flush in interface Flushable
Overrides:
flush in class OutputStream
Throws:
IOException

close

public void close()
           throws IOException
close

Specified by:
close in interface Closeable
Overrides:
close in class OutputStream
Throws:
IOException


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.