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.IOExceptionpublic 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.IOExceptionpublic TeeInputStream(java.io.InputStream is,
java.io.File f)
throws java.io.IOException
is - Reads from this InputStreamf - Write to this Filejava.io.IOExceptionpublic 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.IOExceptionpublic TeeInputStream(java.io.InputStream is,
java.lang.String f)
throws java.io.IOException
is - Reads from this InputStreamf - Write to this Filejava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterInputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
java.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class java.io.FilterInputStreampublic boolean markSupported()
markSupported in class java.io.FilterInputStreampublic void reset()
throws java.io.IOException
reset in class java.io.FilterInputStreamjava.io.IOExceptionpublic void finalize()
finalize in class java.lang.Object