Code example for InputStream

Methods: read

0
        return (int) track(is.read());
    } 
 
    @Override 
    public int read(byte[] b) throws IOException {
        return (int) track(is.read(b));
    } 
 
    @Override 
    public int read(byte[] b, int off, int len) throws IOException {
        return (int) track(is.read(b, off, len));
    } 
 
    @Override 
    public long skip(long n) throws IOException {
        return track(is.skip(n));
    } 
 
    @Override 
    public void mark(int readlimit) {
        is.mark(readlimit);