public class InputStreamExt extends InputStream implements net.thevpc.nuts.NutsStreamMetadataAware, Interruptible
| Constructor and Description |
|---|
InputStreamExt(InputStream in,
Runnable onClose) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
net.thevpc.nuts.NutsStreamMetadata |
getStreamMetadata() |
void |
interrupt() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
mark, markSupported, read, reset, skippublic InputStreamExt(InputStream in, 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 net.thevpc.nuts.NutsStreamMetadata getStreamMetadata()
getStreamMetadata in interface net.thevpc.nuts.NutsStreamMetadataAwareCopyright © 2022 vpc open source initiative. All rights reserved.