Not sure if we need to re-invent the wheel here: 

We could use a DigestInputStream or Google's Guava libraries. See for further details: http://stackoverflow.com/questions/304268/getting-a-files-md5-checksum-in-java

Looks like the method is not currently used anyway (?)