class ByteBufferInputStream extends InputStream {

    @Override
    public long skip(long n)
    {
        int skipCount = (int)Math.min(n, myBuffer.remaining());
        myBuffer.position(myBuffer.position() + skipCount);
        return skipCount;
    }

    public  ByteBufferInputStream(ByteBuffer buffer);

}