|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
ccs.utils.SplitterOutputStream
public class SplitterOutputStream
A SplitterOutputStream copies anything written to it to an arbitrary set of streams.
Constructor Summary | |
---|---|
SplitterOutputStream(java.io.OutputStream[] targets)
Create a splitter which writes to an array of targets. |
|
SplitterOutputStream(java.io.OutputStream q1,
java.io.OutputStream q2)
Creates a splitter which writes to a pair of targets. |
Method Summary | |
---|---|
void |
close()
Close all targets. |
void |
flush()
Flush all targets. |
void |
write(byte[] wad,
int off,
int len)
Write the specified subarray of wad to all targets. |
void |
write(int n)
write the byte represented by n to all targets. |
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 SplitterOutputStream(java.io.OutputStream[] targets)
public SplitterOutputStream(java.io.OutputStream q1, java.io.OutputStream q2)
q1
- The first stream to write to.q2
- The second stream to write to.Method Detail |
---|
public void write(int n) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] wad, int off, int len) throws java.io.IOException
wad
to all targets.
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.OutputStream
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |