public static String getMd5(File file) throws IOException {
        InputStream in = new BufferedInputStream(new FileInputStream(file));
        try {
            return IoUtils.getMd5(in);
        } finally {
            IoUtils.safeClose(in);
        }
    }
public static String getMd5 ( File file ) throws IOException { InputStream in = new BufferedInputStream ( new FileInputStream ( file ) ) ; try { return IoUtils . getMd5 ( in ) ; } finally { IoUtils . safeClose ( in ) ; } }
@return MD5 digest (32 characters).