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