public String getChecksum ( final String fileName , final String algorithm ) { if ( ! this . digests . contains ( algorithm ) ) { return null ; } final String result = this . checksums . get ( fileName + ":" + algorithm ) ; if ( result == null ) { throw new IllegalStateException ( String . format ( "Stream '%s' not closed." , fileName ) ) ; } return result ; }
Get the digest of a closed file