Closeable
, AutoCloseable
public static class BytesReceiver.ReceiverInputStream extends InputStream
Constructor | Description |
---|---|
ReceiverInputStream(BytesReceiver aBytesReceiver) |
Uses the provided
BytesReceiver to provide
InputStream functionality. |
Modifier and Type | Method | Description |
---|---|---|
int |
available() |
|
void |
close() |
|
int |
read() |
|
int |
read(byte[] b,
int off,
int len) |
mark, markSupported, read, readAllBytes, readNBytes, reset, skip, transferTo
public ReceiverInputStream(BytesReceiver aBytesReceiver)
BytesReceiver
to provide
InputStream
functionality.aBytesReceiver
- The receiver to use.public int available() throws IOException
available
in class InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
close
in class InputStream
IOException
Copyright © 2021. All rights reserved.