Here you can find the source of CRC32(byte[] buffer)
public static int CRC32(byte[] buffer)
//package com.java2s; //License from project: Open Source License import java.util.zip.*; public class Main { public static int CRC32(byte[] buffer) { CRC32 crc = new CRC32(); crc.update(buffer);//from w w w. ja v a2 s. c o m return (int) crc.getValue(); } public static int CRC32(String str) { return (int) CRC32(str.getBytes()); } }