cx.ath.matthew.io
public class TeeOutputStream extends FilterOutputStream
PrintWriter r = new PrintWriter(new TeeOutputStream(new FileOutputStream("file"), new File("otherfile")));
| Constructor Summary | |
|---|---|
| TeeOutputStream(OutputStream os, OutputStream tos)
Create a new TeeOutputStream on the given OutputStream
and copy the stream to the other OuputStream. | |
| TeeOutputStream(OutputStream os, File f, boolean append)
Create a new TeeOutputStream on the given OutputStream
and copy the stream to the given File. | |
| TeeOutputStream(OutputStream os, File f)
Create a new TeeOutputStream on the given OutputStream
and copy the stream to the given File. | |
| TeeOutputStream(OutputStream os, String f, boolean append)
Create a new TeeOutputStream on the given OutputStream
and copy the stream to the given File. | |
| TeeOutputStream(OutputStream os, String f)
Create a new TeeOutputStream on the given OutputStream
and copy the stream to the given File. | |
| Method Summary | |
|---|---|
| void | close() |
| void | finalize() |
| void | flush() |
| void | write(int b) |
| void | write(byte[] b) |
| void | write(byte[] b, int off, int len) |
Parameters: os Writes to this OutputStream tos Write to this OutputStream
Parameters: os Writes to this OutputStream f Write to this File append Append to file not overwrite
Parameters: os Writes to this OutputStream f Write to this File
Parameters: os Writes to this OutputStream f Write to this File append Append to file not overwrite
Parameters: os Writes to this OutputStream f Write to this File