Generates Java source code for the CRC algorithm.
JCRCGen is a tool written completely in Java that will output public domain Java source code containing both the simple and table-driven implementations of the Rocksoft Model CRC algorithm. Generator polynomials may be any 8-bit multiple between 8 and 64 bits.
From my 2003 review (and from what I can tell, it's only got better); Another Google brought me to the doors of JCrcGen. This isn’t just a collection of CRC code in Java but a flexible application for generating the source code to implement various CRC checks. The generated code all derives from “A Painless Guide to CRC Error Detection Algorithms” by Dr. Ross Williams, an excellent document which I now realise is probably the definitive resource on CRCs on the web – well worth reading it parallel with using JCrcGen. The generated code is well formatted (and commented!), it can be used under any licence and it took about 2 secs to make it compile under MIDP. What’s also nice about JCrcGen is that there is no installation, just download the binary, run, configure it and out comes your CRC implementation. Yet the application is still powerful enough to generate a CRC which matches another implementation (for example, if you need to read a CRC created by another process or hardware). Superb work! — http://jamie.ideasasylum.com/2003/06/open-source-crc-code-a-mini-ramble/