private String calculateChecksum ( File file ) throws IOException { InputStream is = new FileInputStream ( file ) ; return DigestUtils . md5Hex ( is ) ; }
Returns a hex representation of the MD5 checksum from given file .