public class NNonBlockingInputStreamAdapter extends FilterInputStream implements NNonBlockingInputStream, NInterruptible<InputStream>, NContentMetadataProvider
in| Constructor and Description |
|---|
NNonBlockingInputStreamAdapter(InputStream base,
NContentMetadata md,
NMsg sourceName) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
InputStream |
base() |
void |
close() |
boolean |
enqueue() |
long |
getLastReadTime() |
NContentMetadata |
getMetaData() |
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, waitmark, markSupported, of, resetofInputStreampublic NNonBlockingInputStreamAdapter(InputStream base, NContentMetadata md, NMsg sourceName)
public long getLastReadTime()
public boolean enqueue()
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 interface NNonBlockingInputStreamread in class FilterInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in interface NNonBlockingInputStreamread in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in interface NNonBlockingInputStreamread in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in interface NNonBlockingInputStreamskip in class FilterInputStreamIOExceptionpublic int available()
throws IOException
available in interface NNonBlockingInputStreamavailable in class FilterInputStreamIOExceptionpublic int readNonBlocking(byte[] b,
long timeout)
throws IOException
readNonBlocking in interface NNonBlockingInputStreamIOExceptionpublic int readNonBlocking(byte[] b,
int off,
int len,
long timeout)
throws IOException
readNonBlocking in interface NNonBlockingInputStreamIOExceptionpublic int readNonBlocking(byte[] b)
throws IOException
readNonBlocking in interface NNonBlockingInputStreamIOExceptionpublic int readNonBlocking(byte[] b,
int off,
int len)
throws IOException
readNonBlocking in interface NNonBlockingInputStreamIOExceptionpublic void noMoreBytes()
noMoreBytes in interface NNonBlockingInputStreampublic boolean hasMoreBytes()
hasMoreBytes in interface NNonBlockingInputStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface NNonBlockingInputStreamclose in class FilterInputStreamIOExceptionpublic NContentMetadata getMetaData()
getMetaData in interface NContentMetadataProviderpublic NMsg getSourceName()
Copyright © 2025 vpc open source initiative. All rights reserved.