@Override public int read() throws IOException { fill(); if (buffered > position) { return 0xff & buffer[position++]; } else { return -1; } }
@Override public int read(byte[] b, int off, int len) throws IOException { fill(); if (buffered > position) { len = Math.min(len, buffered - position); System.arraycopy(buffer, position, b, off, len); position += len; return len; } else { return -1; } }
@Override public long skip(long n) throws IOException { fill(); n = Math.min(n, available()); position += n; return n; }
@Override public int read() throws IOException { fill(); if (buffered > position) { return 0xff & buffer[position++]; } else { return -1; } }
@Override public int read() throws IOException { fill(); if (buffered > position) { return 0xff & buffer[position++]; } else { return -1; } }
@Override public int read(byte[] b, int off, int len) throws IOException { fill(); if (buffered > position) { len = Math.min(len, buffered - position); System.arraycopy(buffer, position, b, off, len); position += len; return len; } else { return -1; } }
@Override public int read(byte[] b, int off, int len) throws IOException { fill(); if (buffered > position) { len = Math.min(len, buffered - position); System.arraycopy(buffer, position, b, off, len); position += len; return len; } else { return -1; } }
@Override public long skip(long n) throws IOException { fill(); n = Math.min(n, available()); position += n; return n; }
@Override public long skip(long n) throws IOException { fill(); n = Math.min(n, available()); position += n; return n; }