Code example for CRC32

Methods: update

0
     */ 
    @Override 
    public int read(byte[] b, int off, int len) throws IOException {
        int result = in.read(b, off, len);
        if (result != -1) {
            crc32.update(b, off, result);
        } 
        return result;
    } 
 
}