public class InputStreamExt extends InputStream implements NInterruptible<InputStream>, NContentMetadataProvider
| Constructor and Description |
|---|
InputStreamExt(InputStream base,
NContentMetadata md0,
boolean closeBase,
Runnable onClose,
NProgressListener monitor,
Object source,
NMsg sourceName,
Long length) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
InputStream |
base() |
void |
close() |
Long |
getLength() |
NContentMetadata |
getMetaData() |
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitofInputStreampublic InputStreamExt(InputStream base, NContentMetadata md0, boolean closeBase, Runnable onClose, NProgressListener monitor, Object source, NMsg sourceName, Long length)
public InputStream base()
base in interface NInterruptible<InputStream>public void interrupt()
throws NInterruptException
interrupt in interface NInterruptible<InputStream>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 NContentMetadata getMetaData()
getMetaData in interface NContentMetadataProviderpublic NMsg getSourceName()
Copyright © 2025 vpc open source initiative. All rights reserved.