public class NNonBlockingInputStreamAdapter extends FilterInputStream implements net.thevpc.nuts.io.NNonBlockingInputStream, net.thevpc.nuts.io.NInterruptible<InputStream>, net.thevpc.nuts.io.NContentMetadataProvider
in| Constructor and Description |
|---|
NNonBlockingInputStreamAdapter(InputStream base,
net.thevpc.nuts.io.NContentMetadata md,
net.thevpc.nuts.util.NMsg sourceName) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
InputStream |
base() |
void |
close() |
boolean |
enqueue() |
long |
getLastReadTime() |
net.thevpc.nuts.io.NContentMetadata |
getMetaData() |
net.thevpc.nuts.util.NMsg |
getSourceName() |
boolean |
hasMoreBytes() |
void |
interrupt() |
void |
noMoreBytes() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
int |
readNonBlocking(byte[] b) |
int |
readNonBlocking(byte[] b,
int off,
int len) |
int |
readNonBlocking(byte[] b,
int off,
int len,
long timeout) |
int |
readNonBlocking(byte[] b,
long timeout) |
long |
skip(long n) |
String |
toString() |
mark, markSupported, resetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic NNonBlockingInputStreamAdapter(InputStream base, net.thevpc.nuts.io.NContentMetadata md, net.thevpc.nuts.util.NMsg sourceName)
public long getLastReadTime()
public boolean enqueue()
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 interface net.thevpc.nuts.io.NNonBlockingInputStreamread in class FilterInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in interface net.thevpc.nuts.io.NNonBlockingInputStreamread in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in interface net.thevpc.nuts.io.NNonBlockingInputStreamread in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in interface net.thevpc.nuts.io.NNonBlockingInputStreamskip in class FilterInputStreamIOExceptionpublic int available()
throws IOException
available in interface net.thevpc.nuts.io.NNonBlockingInputStreamavailable in class FilterInputStreamIOExceptionpublic int readNonBlocking(byte[] b,
long timeout)
throws IOException
readNonBlocking in interface net.thevpc.nuts.io.NNonBlockingInputStreamIOExceptionpublic int readNonBlocking(byte[] b,
int off,
int len,
long timeout)
throws IOException
readNonBlocking in interface net.thevpc.nuts.io.NNonBlockingInputStreamIOExceptionpublic int readNonBlocking(byte[] b)
throws IOException
readNonBlocking in interface net.thevpc.nuts.io.NNonBlockingInputStreamIOExceptionpublic int readNonBlocking(byte[] b,
int off,
int len)
throws IOException
readNonBlocking in interface net.thevpc.nuts.io.NNonBlockingInputStreamIOExceptionpublic void noMoreBytes()
noMoreBytes in interface net.thevpc.nuts.io.NNonBlockingInputStreampublic boolean hasMoreBytes()
hasMoreBytes in interface net.thevpc.nuts.io.NNonBlockingInputStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface net.thevpc.nuts.io.NNonBlockingInputStreamclose in class FilterInputStreamIOExceptionpublic 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.