File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes About Adler 32 checksum Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "About Adler 32 checksum" Watch "About Adler 32 checksum" New topic
Author

About Adler 32 checksum

madura shantha
Greenhorn

Joined: Jun 04, 2008
Posts: 8
Hi...
Can we use adler32 to compare two strings?
I have a hashmap with a String as it's value field and the key is adler32 checksum of that string.I want to check whether this hashmap contains another string.I get the checksum of that and compare it with keys in hash map.is it correct?


Madura Shantha.
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1220

Hi madura,

welcome to the ranch Please take a look at the JavaRanch naming policy first and correct your display name accordingly!

For your question: If I understood you correctly, you just want to look if the checksum you have for a string is already as a key in the HashMap?!? That's even easier! Just use method containsKey() of your HashMap. It returns whether the key in question is in the HashMap or not.

Marco
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: About Adler 32 checksum
 
Similar Threads
How to check for the changed file
Comparing war files
Reload a File when changes happen in that file
CheckSum implemantation details for a file
Info on UDP checksums