/** Returns the CRC checksum of denoted file */
public static Long createChecksum(File file) throws IOException {
final InputStream in = openFileStream(file);
final CRC32 checksum = new CRC32();
checksum.reset();
final byte[] buffer = new byte[bufferSize];
int bytesRead;
while ((bytesRead = in.read(buffer)) >= 0) {
checksum.update(buffer, 0, bytesRead);
}