@Override public int skipBytes(final int n) throws IOException { if (n < 0) { throw new IndexOutOfBoundsException("The skip number can't be negative"); } final long newPos = filePointer + n; if (newPos > buf.length) { throw new IndexOutOfBoundsException("Tyring to skip too much bytes"); } seek(newPos); return n; }
@Override public int skipBytes(final int n) throws IOException { if (n < 0) { throw new IndexOutOfBoundsException("The skip number can't be negative"); } final long newPos = filePointer + n; if (newPos > buf.length) { throw new IndexOutOfBoundsException("Tyring to skip too much bytes"); } seek(newPos); return n; }
@Override public int skipBytes(final int n) throws IOException { if (n < 0) { throw new IndexOutOfBoundsException("The skip number can't be negative"); } final long newPos = filePointer + n; if (newPos > buf.length) { throw new IndexOutOfBoundsException("Tyring to skip too much bytes"); } seek(newPos); return n; }
@Override public int skipBytes(final int n) throws IOException { if (n < 0) { throw new IndexOutOfBoundsException( "The skip number can't be negative"); } final long newPos = filePointer + n; if (newPos > buf.length) { throw new IndexOutOfBoundsException("Tyring to skip too much bytes"); } seek(newPos); return n; }
@Override public long skip(final long n) throws IOException { seek(getFilePointer() + n); return n; }
@Override public long skip(final long n) throws IOException { seek(getFilePointer() + n); return n; }
@Override public long skip(final long n) throws IOException { seek(getFilePointer() + n); return n; }
@Override public long skip(final long n) throws IOException { seek(getFilePointer() + n); return n; }