@@ -0,0 +1,1106 @@
+/*%0A * JLibs: Common Utilities for Java%0A * Copyright (C) 2009  Santhosh Kumar T %3Csanthosh.tekuri@gmail.com%3E%0A *%0A * This library is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU Lesser General Public%0A * License as published by the Free Software Foundation; either%0A * version 2.1 of the License, or (at your option) any later version.%0A *%0A * This library is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A * Lesser General Public License for more details.%0A */%0A%0Apackage jlibs.nio.listeners;%0A%0Aimport jlibs.nio.util.Buffers;%0A%0Aimport java.io.IOException;%0A%0Aimport static java.nio.channels.SelectionKey.OP_READ;%0A%0A/**%0A * @author Santhosh Kumar Tekuri%0A */%0Apublic class ReadBuffers extends Task%7B%0A    private Buffers buffers;%0A    public ReadBuffers(Buffers buffers)%7B%0A        super(OP_READ);%0A        this.buffers = buffers;%0A    %7D%0A%0A    @Override%0A    protected boolean process(int readyOp) throws IOException%7B%0A        return read(buffers);%0A    %7D%0A%7D%0A

ReadBuffers task