cx.ath.matthew.io
public class TeeInputStream extends FilterInputStream
Reader r = new InputStreamReader(new TeeInputStream(new FileInputStream("file"), new File("otherfile")));
| Constructor Summary | |
|---|---|
| TeeInputStream(InputStream is, OutputStream tos)
Create a new TeeInputStream on the given InputStream
and copy the stream to the given File. | |
| TeeInputStream(InputStream is, File f, boolean append)
Create a new TeeInputStream on the given InputStream
and copy the stream to the given File. | |
| TeeInputStream(InputStream is, File f)
Create a new TeeInputStream on the given InputStream
and copy the stream to the given File. | |
| TeeInputStream(InputStream is, String f, boolean append)
Create a new TeeInputStream on the given InputStream
and copy the stream to the given File. | |
| TeeInputStream(InputStream is, String f)
Create a new TeeInputStream on the given InputStream
and copy the stream to the given File. | |
| Method Summary | |
|---|---|
| int | available() |
| void | close() |
| void | finalize() |
| void | flush() |
| void | mark(int readlimit) |
| boolean | markSupported() |
| int | read() |
| int | read(byte[] b) |
| int | read(byte[] b, int off, int len) |
| void | reset() |
| long | skip(long n) |
Parameters: is Reads from this InputStream tos Write to this OutputStream
Parameters: is Reads from this InputStream f Write to this File append Append to file not overwrite
Parameters: is Reads from this InputStream f Write to this File
Parameters: is Reads from this InputStream f Write to this File append Append to file not overwrite
Parameters: is Reads from this InputStream f Write to this File