Code example for DigestOutputStream

Methods: getMessageDigest

0
                data.close();
            } 
            catch ( IOException e ) {
                throw new UnexpectedException(e);
            } 
            digest = digester.getMessageDigest().digest();
        } 
        return Arrays.copyOf(digest, digest.length);
    } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java