public class BufferedByteChannelBase extends java.lang.Object implements BufferedByteChannel
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
bb |
protected java.nio.ByteBuffer |
buffer |
protected static int |
REUSABLE_BUFF_SIZE_MAX |
protected static int |
REUSABLE_BUFF_SIZE_MIN |
| Modifier | Constructor and Description |
|---|---|
protected |
BufferedByteChannelBase(int size) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
buffer() |
void |
close() |
boolean |
isOpen() |
protected static final int REUSABLE_BUFF_SIZE_MIN
protected static final int REUSABLE_BUFF_SIZE_MAX
protected final byte[] bb
protected final java.nio.ByteBuffer buffer
public final java.nio.ByteBuffer buffer()
buffer in interface BufferedByteChannelpublic boolean isOpen()
isOpen in interface java.nio.channels.Channelpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface java.nio.channels.Channeljava.io.IOException