Class Sha512DigestInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.security.DigestInputStream
org.eluder.coveralls.maven.plugin.util.Sha512DigestInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class Sha512DigestInputStream extends DigestInputStream
The Class Sha512DigestInputStream.
  • Constructor Details

    • Sha512DigestInputStream

      public Sha512DigestInputStream(InputStream stream)
      Instantiates a new sha 512 digest input stream.
      Parameters:
      stream - the stream
  • Method Details

    • getDigestHex

      public String getDigestHex()
      Gets the digest hex.

      Note: Calling this method will finalize and reset the digest. Subsequent calls will return the digest of an empty stream unless the stream is re-read. This is standard behavior for MessageDigest.digest().

      Returns:
      the digest hex