public class TeeInputStream extends FilterInputStream
Reader r = new InputStreamReader(new TeeInputStream(new FileInputStream("file"), new File("otherfile")));
Constructor and Description |
---|
TeeInputStream(InputStream is,
File f)
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,
OutputStream tos)
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.
|
TeeInputStream(InputStream is,
String f,
boolean append)
Create a new TeeInputStream on the given InputStream
and copy the stream to the given File.
|
public TeeInputStream(InputStream is, OutputStream tos) throws IOException
is
- Reads from this InputStreamtos
- Write to this OutputStreamIOException
public TeeInputStream(InputStream is, File f, boolean append) throws IOException
is
- Reads from this InputStreamf
- Write to this Fileappend
- Append to file not overwriteIOException
public TeeInputStream(InputStream is, File f) throws IOException
is
- Reads from this InputStreamf
- Write to this FileIOException
public TeeInputStream(InputStream is, String f, boolean append) throws IOException
is
- Reads from this InputStreamf
- Write to this Fileappend
- Append to file not overwriteIOException
public TeeInputStream(InputStream is, String f) throws IOException
is
- Reads from this InputStreamf
- Write to this FileIOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
public void flush() throws IOException
IOException
public int available() throws IOException
available
in class FilterInputStream
IOException
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
public void mark(int readlimit)
mark
in class FilterInputStream
public boolean markSupported()
markSupported
in class FilterInputStream
public void reset() throws IOException
reset
in class FilterInputStream
IOException