public class MD5DigestDelegate extends Object
<p>A delegate around reading input streams for calculating a MD5 hash sum.</p>
| Modifier and Type | Class and Description |
|---|---|
static interface |
MD5DigestDelegate.DigestOperation<D extends MD5Descriptor>
<p>Defines the read operation to execute.
|
| Modifier and Type | Method and Description |
|---|---|
<D extends MD5Descriptor> |
digest(InputStream stream,
MD5DigestDelegate.DigestOperation<D> digestOperation)
<p>Calculate the MD5 hash sum for the given input stream using the given
operation.
|
static MD5DigestDelegate |
getInstance()
<p>Return the singleton instance.
|
public static MD5DigestDelegate getInstance()
<p>Return the singleton instance.</p>
public <D extends MD5Descriptor> D digest(InputStream stream, MD5DigestDelegate.DigestOperation<D> digestOperation) throws IOException
<p>Calculate the MD5 hash sum for the given input stream using the given operation.</p>
D - The MD5 descriptor type.stream - The stream.digestOperation - The operation.IOException - If reading the stream fails.Copyright © 2016–2021 jQAssistant Development Team. All rights reserved.