|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
org.scijava.console.MultiOutputStream
public class MultiOutputStream
A MultiOutputStream is a collection of constituent
OutputStream objects, to which all output is forwarded.
Thanks to Ian F. Darwin for his implementation of a similar concept.
| Constructor Summary | |
|---|---|
MultiOutputStream(OutputStream... os)
Forwards output to a list of output streams. |
|
| Method Summary | |
|---|---|
void |
addOutputStream(OutputStream os)
Adds an output stream to those receiving this stream's output. |
void |
close()
|
void |
flush()
|
void |
removeOutputStream(OutputStream os)
Removes an output stream from those receiving this stream's output. |
void |
write(byte[] buf,
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 |
|---|
public MultiOutputStream(OutputStream... os)
os - Output streams which will receive this stream's output.| Method Detail |
|---|
public void addOutputStream(OutputStream os)
public void removeOutputStream(OutputStream os)
public void write(int b)
throws IOException
write in class OutputStreamIOException
public void write(byte[] buf,
int off,
int len)
throws IOException
write in class OutputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in class OutputStreamIOException
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||