TeeOutputStreampublic class TeeOutputStream extends FilterOutputStream
Fields Summary |
---|
OutputStream | out1 | OutputStream | out2 |
Constructors Summary |
---|
public TeeOutputStream(OutputStream stream1, OutputStream stream2)
super(stream1);
out1 = stream1;
out2 = stream2;
|
Methods Summary |
---|
public void | close()
out1.close();
out2.close();
| public void | flush()
out1.flush();
out2.flush();
| public synchronized void | write(int b)
out1.write(b);
out2.write(b);
| public synchronized void | write(byte[] data, int offset, int length)
out1.write(data, offset, length);
out2.write(data, offset, length);
|
|