ReadableByteChannel
ByteBuffer
this.byteBuffer = byteBuffer;
return true;
byte[] b = dst.array(); int r = dst.remaining(); if (byteBuffer.remaining() >= r) { byteBuffer.get(b, dst.position(), r); return r; } else { throw new EOFException("Reading beyond end of stream"); }
int r = src.remaining(); byteBuffer.put(src); return r;