File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Calculation of total bits in a file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Calculation of total bits in a file" Watch "Calculation of total bits in a file" New topic

Calculation of total bits in a file

Gupta Nitin

Joined: Feb 05, 2007
Posts: 7
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

Joined: Jul 08, 2003
Posts: 24183

You might look at the class.

Why isn't this in "File"? Because represents an abstract file path. It doesn't do anything with the contents of files.

[Jess in Action][AskingGoodQuestions]
wood burning stoves
subject: Calculation of total bits in a file
Similar Threads
Calculate the average of an ArrayList
calculate total files size at applet loading : slow
connot resolve symbol-variable calculate
MySQL update issue
Beginner Mistake I bet you get this 100 times a year