Sample code for 30+ languages & platforms
Java

Example: Crypt2.CrcFile method

Demonstrates how to call the CrcFile method.

Chilkat Java Downloads

Chilkat2 Java
import com.chilkatsoft.chilkat2.Crypt2;

public class ChilkatExample {

    public static void main(String[] args) {
        Crypt2 crypt = new Crypt2();

        String filePath = "c:/temp/someFile.dat";

        long crc32 = crypt.crcFile("crc-32", filePath);
        System.out.println(crc32);

        long crc8 = crypt.crcFile("crc8", filePath);
        System.out.println(crc8);
    }
}