Closeable, AutoCloseablepublic class TeeInputStream extends InputStream
| Modifier and Type | Field | Description |
|---|---|---|
protected OutputStream |
copySink |
|
protected InputStream |
source |
| Constructor | Description |
|---|---|
TeeInputStream(InputStream source,
OutputStream sink) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
available() |
|
void |
close() |
|
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) |
readAllBytes, readNBytes, transferToprotected InputStream source
protected OutputStream copySink
public TeeInputStream(InputStream source, OutputStream sink)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionCopyright © 2018 Oracle. All rights reserved.