package pw.koj.jetstreem.core;

import java.nio.ByteBuffer;
import java.nio.channels.SelectableChannel;

public class ChannelReadBuffer {
    private static final int BUF_SIZE = 4096;
    private SelectableChannel ch;
    private ByteBuffer buf;

    public ChannelReadBuffer(SelectableChannel ch) {
        this.ch = ch;
        this.buf = ByteBuffer.allocateDirect(BUF_SIZE);
    }
}


@@ -376,12 +376,141 @@
 );%0A    %7D
+%0A%0A    public SelectableChannel ch() %7B%0A        return this.ch;%0A    %7D%0A%0A    public ByteBuffer buf() %7B%0A        return this.buf;%0A    %7D
 %0A%7D%0A%0A

add getter methods in class ChannelReadBuffer