| 
 | Jadex 0.96-beta1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
jadex.util.MultiStream
public class MultiStream
Dipatch the write calls to a number of specified output streams.
| Constructor Summary | |
|---|---|
| MultiStream(OutputStream[] outs)Create a new multi stream. | |
| Method Summary | |
|---|---|
|  void | close()Close the streams. | 
|  void | flush()Flush the streams. | 
|  OutputStream[] | getOutputStreams()Get the output streams. | 
|  void | setEnabled(OutputStream out,
           boolean enabled)Set the enabled state of a stream. | 
|  void | setOutputStreams(OutputStream[] outs)Set the output streams. | 
|  void | write(byte[] b,
      int off,
      int len)Write a byte array to the streams. | 
|  void | write(int b)Write a byte to the streams. | 
| Methods inherited from class java.io.OutputStream | 
|---|
| write | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public MultiStream(OutputStream[] outs)
outs - The output streams.| Method Detail | 
|---|
public void write(int b)
           throws IOException
write in class OutputStreamb - The byte.
IOException
public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
write in class OutputStreamb - The byte.off - The start offset.len - The length.
IOException
public void close()
           throws IOException
close in interface Closeableclose in class OutputStreamIOException
public void flush()
           throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic OutputStream[] getOutputStreams()
public void setOutputStreams(OutputStream[] outs)
outs - The output streams.
public void setEnabled(OutputStream out,
                       boolean enabled)
out - The output stream.enabled - The enabled state.| 
 | Jadex 0.96-beta1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.