|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.io.OutputStream
|
+--com.compoze.util.MultiOutputStream
This class writes output to this OutputStream synchronously to any number of underlying OutputStreams.
| Constructor Summary | |
MultiOutputStream()
Constructor. |
|
MultiOutputStream(java.util.Collection outputStreams)
Constructor. |
|
MultiOutputStream(java.io.OutputStream[] outputStreams)
Constructor. |
|
| Method Summary | |
void |
addOutputStream(java.io.OutputStream os)
Add an output stream to the list output streams that are written to. |
void |
close()
Close all underlying output streams. |
void |
flush()
Flush all underlying output streams. |
void |
removeOutputStream(java.io.OutputStream os)
Remove an output stream from the list of output streams that are written to. |
void |
write(byte[] bytes)
Write to all underlying output streams. |
void |
write(byte[] bytes,
int iOffset,
int iLength)
Write to all underlying output streams. |
void |
write(int i)
Write to all underlying output streams. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MultiOutputStream()
public MultiOutputStream(java.io.OutputStream[] outputStreams)
outputStreams - an array of output stream to write topublic MultiOutputStream(java.util.Collection outputStreams)
outputStreams - a collection of output stream to write to| Method Detail |
public void addOutputStream(java.io.OutputStream os)
os - the output stream to addpublic void removeOutputStream(java.io.OutputStream os)
os - the output stream to add
public void close()
throws java.io.IOException
close in class java.io.OutputStreamjava.io.IOException - if an i/o error occurs
public void flush()
throws java.io.IOException
flush in class java.io.OutputStreamjava.io.IOException - if an i/o error occurs
public void write(int i)
throws java.io.IOException
write in class java.io.OutputStreami - the byte to write
public void write(byte[] bytes)
throws java.io.IOException
write in class java.io.OutputStreambytes - the byte array to write
public void write(byte[] bytes,
int iOffset,
int iLength)
throws java.io.IOException
write in class java.io.OutputStreambytes - to byte array to writeiOffset - offset in arrayiLength - number of bytes to write
|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||