569570571572573574575576577578579
} public void testRead() throws Exception { final AsynchronousFileImpl controller = new AsynchronousFileImpl(executor, pollerExecutor); controller.setBufferCallback(new BufferCallback() { public void bufferDone(final ByteBuffer buffer) { AsynchronousFileImpl.destroyBuffer(buffer);
693694695696697698699700701702703
controller.open(FILE_NAME, 10000); controller.fill(0, 1, NUMBER_LINES * SIZE, (byte)'j'); controller.setBufferCallback(new BufferCallback() { public void bufferDone(final ByteBuffer buffer) { AsynchronousFileImpl.destroyBuffer(buffer);
413414415416417418419420421422423
controller.fill(0, 1, NUMBER_LINES * SIZE, (byte)'j'); final ArrayList<ByteBuffer> buffers = new ArrayList<ByteBuffer>(); BufferCallback bufferCallback = new BufferCallback() { public void bufferDone(final ByteBuffer buffer) { buffers.add(buffer); }
495496497498499500501502503504505
565566567568569570571572573574575
689690691692693694695696697698699