Code example for InputStream

Methods: read

0
        return bytesRead;
    } 
 
    @Override 
    public int read() throws IOException { 
        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));