public class InputStreamTee extends InputStream implements InputStreamMetadataAware, Interruptible
| Constructor and Description |
|---|
InputStreamTee(InputStream in,
OutputStream out,
Runnable onClose) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
InputStreamMetadata |
getMetaData() |
void |
interrupt() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
mark, markSupported, read, reset, skippublic InputStreamTee(InputStream in, OutputStream out, Runnable onClose)
public void interrupt()
throws InterruptException
interrupt in interface InterruptibleInterruptExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic InputStreamMetadata getMetaData()
getMetaData in interface InputStreamMetadataAwareCopyright © 2021 vpc open source initiative. All rights reserved.