This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calculation of total bits in a file

 
Gupta Nitin
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone suggest an API method to calculate the checksum of an image? Why isn't there a method in File class to calculate total number of bits in a file?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might look at the java.util.zip.CRC32 class.

Why isn't this in "File"? Because java.io.File represents an abstract file path. It doesn't do anything with the contents of files.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic