class ListOfBytesInputStream extends InputStream {

    @Override
    public synchronized long skip(long n)
    {
        long k = myCount - myPosition;
        if (n < k)
        {
            k = n < 0 ? 0 : n;
        }

        myPosition += k;
        return k;
    }

    public  ListOfBytesInputStream(List<byte[]> data, int length, int maxChunkSize);

}