Code example for CRC32

Methods: getValue, update

0
        return false; 
    } 
 
    private static int crc32(String str) {
        byte bytes[] = str.getBytes();
        Checksum checksum = new CRC32();
        checksum.update(bytes, 0, bytes.length);
        return (int) checksum.getValue();
    } 
 
    // logging facilities to enable easy overriding. thanks, Dan! 
    // 
    protected void Log_v(String tag, String message) {
        Log_v(tag, message, null);
    } 
 
    protected void Log_v(String tag, String message, Throwable e) {
        log("v", tag, message, e);
    } 
 
    protected void Log_d(String tag, String message) {