public abstract class ReadableByteChannelBase extends Object implements ReadableByteChannel
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isOpen |
protected int |
maxReadSize |
| Constructor and Description |
|---|
ReadableByteChannelBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
protected boolean |
isUnderlyingEntityKnownToBeClosed() |
int |
read(ByteBuffer dst) |
protected abstract int |
readActual(ByteBuffer dst) |
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionpublic int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelIOExceptionprotected boolean isUnderlyingEntityKnownToBeClosed()
protected abstract int readActual(ByteBuffer dst) throws IOException
IOExceptionCopyright © 2020. All rights reserved.