public class InputStreamExt extends InputStream implements net.thevpc.nuts.io.NInterruptible<InputStream>, net.thevpc.nuts.io.NContentMetadataProvider
| Constructor and Description |
|---|
InputStreamExt(InputStream base,
net.thevpc.nuts.io.NContentMetadata md0,
boolean closeBase,
Runnable onClose,
net.thevpc.nuts.time.NProgressListener monitor,
Object source,
net.thevpc.nuts.util.NMsg sourceName,
Long length) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
InputStream |
base() |
void |
close() |
Long |
getLength() |
net.thevpc.nuts.io.NContentMetadata |
getMetaData() |
net.thevpc.nuts.util.NMsg |
getSourceName() |
void |
interrupt() |
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) |
String |
toString() |
public InputStreamExt(InputStream base, net.thevpc.nuts.io.NContentMetadata md0, boolean closeBase, Runnable onClose, net.thevpc.nuts.time.NProgressListener monitor, Object source, net.thevpc.nuts.util.NMsg sourceName, Long length)
public InputStream base()
base in interface net.thevpc.nuts.io.NInterruptible<InputStream>public void interrupt()
throws net.thevpc.nuts.io.NInterruptException
interrupt in interface net.thevpc.nuts.io.NInterruptible<InputStream>net.thevpc.nuts.io.NInterruptExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class InputStreampublic void mark(int readlimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic Long getLength()
public net.thevpc.nuts.io.NContentMetadata getMetaData()
getMetaData in interface net.thevpc.nuts.io.NContentMetadataProviderpublic net.thevpc.nuts.util.NMsg getSourceName()
Copyright © 2025 vpc open source initiative. All rights reserved.