public class StreamCopyDigest extends Object
| Constructor and Description |
|---|
StreamCopyDigest() |
StreamCopyDigest(MessageDigestGenerator generator) |
| Modifier and Type | Method and Description |
|---|---|
String |
copyAndCalculateHashcode(InputStream in,
OutputStream out)
Copies the input stream data to the output stream and returns the
copied data's digest string.
|
MessageDigestGenerator |
getMessageDigestGenerator() |
public StreamCopyDigest()
public StreamCopyDigest(MessageDigestGenerator generator)
public MessageDigestGenerator getMessageDigestGenerator()
public String copyAndCalculateHashcode(InputStream in, OutputStream out)
in - input contentout - where to write the input contentCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.