Tutorial: Calculating the checksum of a file/Adler32
A Checksum is used for error checking while transferring a file.
Tutorial Details:
To make a program on Checksum first of all make a class named ChecksumAdler32. Inside the class declare one method checkSum(String file) which will take a value of a file which has to pass at run time.
Now make a object of FileInputStream, CheckedInputStream and Adler32 and pass the instance of FileInputStream, Adler32 into the constructor of CheckedInputStream class. To calculate the size of the file call the method length() of File class.
Create Intelligent E-mail Filters with JavaMail and Classifier4j
Create Intelligent E-mail Filters with JavaMail and Classifier4j
Tired of the limitations and annoying false positives with commercial spam filters? Classifier4J is an open source Java library that will let you build custom applications that read e-mails