* @throws IOException
*/
public static long getCRC(final String fileName)
throws FileNotFoundException, IOException {
// Computer CRC32 checksum
final CheckedInputStream cis = new CheckedInputStream(
new FileInputStream(fileName), new CRC32());
byte[] buf = new byte[128];
while (cis.read(buf) >= 0) {
}
long checksum = cis.getChecksum().getValue();
// System.out.println(checksum + " " + fileSize + " " + fileName);
return checksum;
}