417418419420421422423424425426427
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); }
499500501502503504505506507508509
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);
430431432433434435436437438439440
500501502503504505506507508509510
559560561562563564565566567568569
} public void testRead() throws Exception { controller = new AsynchronousFileImpl(executor, pollerExecutor); controller.setBufferCallback(new BufferCallback() { public void bufferDone(final ByteBuffer buffer) { AsynchronousFileImpl.destroyBuffer(buffer);
659660661662663664665666667668669