class HashUtil {

    private HashUtil() { }

    public static String md5(final File file) {
        try (InputStream fis = Files.newInputStream(file.toPath())) {
            return org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);
        } catch (IOException e){
            return null;
        }
    }

    public static String sha1(final File file) {
        try (InputStream fis = Files.newInputStream(file.toPath())) {
            return org.apache.commons.codec.digest.DigestUtils.sha1Hex(fis);
        } catch (IOException e){
            return null;
        }
    }

    public static String sha256(final File file) {<FILL_FUNCTION_BODY>}

    public static String sha512(final File file) {
        try (InputStream fis = Files.newInputStream(file.toPath())) {
            return org.apache.commons.codec.digest.DigestUtils.sha512Hex(fis);
        } catch (IOException e){
            return null;
        }
    }

}

        try (InputStream fis = Files.newInputStream(file.toPath())) {
            return org.apache.commons.codec.digest.DigestUtils.sha256Hex(fis);
        } catch (IOException e){
            return null;
        }
    
<no_super_class>