public class ChecksumUtil extends Object
Constructor and Description |
---|
ChecksumUtil() |
Modifier and Type | Method and Description |
---|---|
static List<ChecksumAlgorithm> |
getAlgorithms(List<String> checksumTypes)
Returns the list of configured checksum types.
|
static List<Checksum> |
initializeChecksums(Path file,
List<ChecksumAlgorithm> checksumAlgorithms) |
static List<Checksum> |
newChecksums(List<ChecksumAlgorithm> checksumAlgorithms) |
static void |
update(Checksum checksum,
Path file) |
static void |
update(List<Checksum> checksumList,
Path file) |
public ChecksumUtil()
public static void update(List<Checksum> checksumList, Path file) throws IOException
IOException
public static void update(Checksum checksum, Path file) throws IOException
IOException
public static List<Checksum> initializeChecksums(Path file, List<ChecksumAlgorithm> checksumAlgorithms) throws IOException
IOException
public static List<ChecksumAlgorithm> getAlgorithms(List<String> checksumTypes)
checksumTypes
- The list of checksum stringspublic static List<Checksum> newChecksums(List<ChecksumAlgorithm> checksumAlgorithms)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.