com.artenum.jyconsole.io
Class MultiStreamWriter

java.lang.Object
  extended by java.io.OutputStream
      extended by com.artenum.jyconsole.io.MultiStreamWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class MultiStreamWriter
extends java.io.OutputStream

Author:
Sebastien Jourdain, jourdain@artenum.com

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

Constructor Detail

MultiStreamWriter

public MultiStreamWriter()
Method Detail

addSingleStream

public void addSingleStream(SingleStream writer)

removeSingleStream

public void removeSingleStream(SingleStream writer)

write

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

write

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

write

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


 (c) Copyright: Artenum SARL, 101-103 Boulevard Mac Donald, 
                75019, Paris, France 2005.
                http://www.artenum.com
 
 License:

  This program is free software; you can redistribute it 
  and/or modify it under the terms of the Q Public License; 
  either version 1 of the License.

  This program is distributed in the hope that it will be
  useful, but WITHOUT ANY WARRANTY; without even the implied
  warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
  PURPOSE. See the Q Public License for more details.

  You should have received a copy of the Q Public License 
  License along with this program; 
  if not, write to:
    Artenum SARL, 101-103 Boulevard Mac Donald,
    75019, PARIS, FRANCE, e-mail: contact@artenum.com