public final class ChecksumAlgorithmHelper extends Object
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
calculate(byte[] data,
List<ChecksumAlgorithmFactory> factories)
Calculates checksums for specified data.
|
static Map<String,String> |
calculate(File file,
List<ChecksumAlgorithmFactory> factories)
Calculates checksums for specified file.
|
public static Map<String,String> calculate(byte[] data, List<ChecksumAlgorithmFactory> factories) throws IOException
data
- The content for which to calculate checksums, must not be null
.factories
- The checksum algorithm factories to use, must not be null
.null
.IOException
- In case of any problem.public static Map<String,String> calculate(File file, List<ChecksumAlgorithmFactory> factories) throws IOException
file
- The file for which to calculate checksums, must not be null
.factories
- The checksum algorithm factories to use, must not be null
.null
.IOException
- In case of any problem.Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.