abstract class UpdateMessageDigestInputStream
extends java.io.InputStream
InputStream
that allows for optimized
implementations of message digesting.Constructor and Description |
---|
UpdateMessageDigestInputStream() |
Modifier and Type | Method and Description |
---|---|
void |
updateMessageDigest(java.security.MessageDigest messageDigest)
Update the message digest with the rest of the bytes in this stream.
|
void |
updateMessageDigest(java.security.MessageDigest messageDigest,
int len)
Update the message digest with the next len bytes in this stream.
|
public void updateMessageDigest(java.security.MessageDigest messageDigest) throws java.io.IOException
Using this method is more optimized since it avoids creating new byte arrays for each call.
messageDigest
- The message digest to updatejava.io.IOException
- when propagated from InputStream.read()
public void updateMessageDigest(java.security.MessageDigest messageDigest, int len) throws java.io.IOException
Using this method is more optimized since it avoids creating new byte arrays for each call.
messageDigest
- The message digest to updatelen
- how many bytes to read from this stream and use to update the message digestjava.io.IOException
- when propagated from InputStream.read()