public abstract class UpdateMessageDigestInputStream
extends java.io.InputStream
| 构造器和说明 |
|---|
UpdateMessageDigestInputStream() |
| 限定符和类型 | 方法和说明 |
|---|---|
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()