Code example for InputStream

Methods: mark

0
        parent.close();
    } 
 
    @Override 
    public synchronized void mark(int readlimit) {
        parent.mark(readlimit);
    } 
 
    @Override 
    public boolean markSupported() { 
        return parent.markSupported();
    } 
 
    @Override 
    public int read(byte[] b, int off, int len) throws IOException {
        int read = super.read(b, off, len);
        position += read;
        return read;
    } 
 
    @Override