@Override
 public void writeAll(ByteBuffer src) throws IOException {
   delegateChannel.writeAll(src);
 }
Example #2
0
 public final void writeRecord(Record record, StoreChannel channel) throws IOException {
   ByteBuffer buffer = ByteBuffer.allocate(getRecordSize());
   StubPageCursor cursor = new StubPageCursor(0, buffer);
   write(record, cursor);
   channel.writeAll(buffer);
 }