public class MultiOutputStream
extends java.io.OutputStream
Modifier and Type | Field and Description |
---|---|
private java.io.OutputStream[] |
streams |
Constructor and Description |
---|
MultiOutputStream(java.io.OutputStream[] streams)
creates a new MultiOutputStream
|
Modifier and Type | Method and Description |
---|---|
void |
write(byte[] b,
int start,
int len)
writes the byte[] to each of the streams
overriding this high-level method causes less overhead
than overriding only the low-level write method:
it causes (a large number) less 'for' loops
|
void |
write(int b)
writes the byte to each of the streams
|
public MultiOutputStream(java.io.OutputStream[] streams)
streams
- public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
OutputStream.write(int)
public void write(byte[] b, int start, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
OutputStream.write(int)