Modifier and Type | Field and Description |
---|---|
private static int |
BUFFER_SIZE |
private ChecksumAlgorithm |
checksumAlgorithm |
private MessageDigest |
md |
Constructor and Description |
---|
Checksum(ChecksumAlgorithm checksumAlgorithm) |
Modifier and Type | Method and Description |
---|---|
ChecksumAlgorithm |
getAlgorithm() |
String |
getChecksum() |
void |
reset() |
Checksum |
update(byte[] buffer,
int offset,
int size) |
Checksum |
update(InputStream stream) |
static void |
update(List<Checksum> checksums,
InputStream stream) |
private static final int BUFFER_SIZE
private final MessageDigest md
private ChecksumAlgorithm checksumAlgorithm
public Checksum(ChecksumAlgorithm checksumAlgorithm)
public static void update(List<Checksum> checksums, InputStream stream) throws IOException
IOException
public String getChecksum()
public ChecksumAlgorithm getAlgorithm()
public void reset()
public Checksum update(InputStream stream) throws IOException
IOException
Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.