@Override public long skipBytes(long n) throws IOException { long skipped = 0; try { for (long i=0; i<n; i++) { if (readUnsignedByte() != -1) skipped++; markManager(); } } catch (EOFException e) { } return skipped; }
@Override public int skipBytes(int n) throws IOException { int skipped = 0; try { for (int i=0; i<n; i++) { if (readUnsignedByte() != -1) skipped++; markManager(); } } catch (EOFException e) { } return skipped; }