class DynamicCompositeByteBufInputStream extends InputStream implements DataInput {

    @Override
    public int read() throws IOException {
        if (!buffer.isReadable()) {
            return -1;
        }
        return buffer.readByte() & 0xff;
    }

    public  DynamicCompositeByteBufInputStream(DynamicCompositeByteBuf compositeByteBuf);
    public  DynamicCompositeByteBufInputStream(DynamicCompositeByteBuf buffer, boolean releaseOnClose);

}