class NullInputStream extends InputStream {

    @Override
    public long skip(final long numberOfBytes) throws IOException {
        if (eof) {
            throw new IOException("Skip after end of file");
        }
        if (position == size) {
            return doEndOfFile();
        }
        position += numberOfBytes;
        long returnLength = numberOfBytes;
        if (position > size) {
            returnLength = numberOfBytes - (position - size);
            position = size;
        }
        return returnLength;
    }

    public  NullInputStream(final long size);
    public  NullInputStream(final long size, final boolean markSupported, final boolean throwEofException);

}