Code example for CRC32

Methods: reset

0
     * 
     * @see java.io.InputStream#reset() 
     */ 
    @Override 
    public synchronized void reset() throws IOException { 
        crc32.reset();
        in.reset();
    } 
 
    /** 
     * @see java.io.InputStream#read() 
     */ 
    @Override 
    public int read() throws IOException { 
        int ch = in.read();
        if (ch != -1) {
            crc32.update(ch);
        } 
        return ch;
    }