|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
de.cau.cs.kieler.core.util.ForkedOutputStream
public class ForkedOutputStream
An output stream that can be used to send the same output to multiple output streams.
Constructor Summary | |
---|---|
ForkedOutputStream(List<OutputStream> theoutputStreams)
Creates a forked output stream that writes to all output streams in the given list. |
|
ForkedOutputStream(OutputStream stream1,
OutputStream stream2)
Creates a forked output stream that writes to the two given output streams. |
Method Summary | |
---|---|
void |
close()
|
void |
flush()
|
void |
write(int b)
|
Methods inherited from class java.io.OutputStream |
---|
write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ForkedOutputStream(List<OutputStream> theoutputStreams)
theoutputStreams
- list of output streamspublic ForkedOutputStream(OutputStream stream1, OutputStream stream2)
stream1
- an output streamstream2
- an output streamMethod Detail |
---|
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in class OutputStream
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |