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
The Class Sha512DigestInputStream.
-
Field Summary
Fields inherited from class DigestInputStream
digestFields inherited from class FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionSha512DigestInputStream(InputStream stream) Instantiates a new sha 512 digest input stream. -
Method Summary
Methods inherited from class DigestInputStream
getMessageDigest, on, read, read, setMessageDigest, toStringMethods inherited from class FilterInputStream
available, close, mark, markSupported, read, reset, skipMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
Constructor Details
-
Sha512DigestInputStream
Instantiates a new sha 512 digest input stream.- Parameters:
stream- the stream
-
-
Method Details
-
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
-