Top Description Constructors Methods
org.springframework.util

pack-priv abstract Class UpdateMessageDigestInputStream

extends InputStream
Class Inheritance
Known Direct Subclasses
org.springframework.util.FastByteArrayOutputStream.FastByteArrayInputStream
Imports
java.io.IOException, .InputStream, java.security.MessageDigest

Extension of java.io.InputStream that allows for optimized implementations of message digesting.
Author
Craig Andrews
Since
4.2

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
updateMessageDigest(MessageDigest
the message digest to update
messageDigest
)

Update the message digest with the rest of the bytes in this stream.

public void
updateMessageDigest(MessageDigest
the message digest to update
messageDigest
,
int
how many bytes to read from this stream and use to update the message digest
len
)

Update the message digest with the next len bytes in this stream.

Inherited from java.io.InputStream:
availableclosemarkmarkSupportednullInputStreamreadreadreadreadAllBytesreadNBytesreadNBytesresetskipskipNBytestransferTo

Constructor Detail

UpdateMessageDigestInputStreamback to summary
pack-priv UpdateMessageDigestInputStream()

Method Detail

updateMessageDigestback to summary
public void updateMessageDigest(MessageDigest messageDigest) throws IOException

Update the message digest with the rest of the bytes in this stream.

Using this method is more optimized since it avoids creating new byte arrays for each call.

Parameters
messageDigest:MessageDigest

the message digest to update

Exceptions
IOException:
when propagated from read()
updateMessageDigestback to summary
public void updateMessageDigest(MessageDigest messageDigest, int len) throws IOException

Update the message digest with the next len bytes in this stream.

Using this method is more optimized since it avoids creating new byte arrays for each call.

Parameters
messageDigest:MessageDigest

the message digest to update

len:int

how many bytes to read from this stream and use to update the message digest

Exceptions
IOException:
when propagated from read()