public enum ChecksumAlgorithm extends Enum<ChecksumAlgorithm>
| Modifier and Type | Field and Description | 
|---|---|
private String | 
algorithm
The MessageDigest algorithm for this hash. 
 | 
private String | 
ext
The file extension for this ChecksumAlgorithm. 
 | 
private String | 
type
The checksum type, the key that you see in checksum files. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getAlgorithm()  | 
static ChecksumAlgorithm | 
getByExtension(File file)  | 
String | 
getExt()  | 
String | 
getType()  | 
static ChecksumAlgorithm | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static ChecksumAlgorithm[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final ChecksumAlgorithm SHA1
public static final ChecksumAlgorithm MD5
public static ChecksumAlgorithm[] values()
for (ChecksumAlgorithm c : ChecksumAlgorithm.values()) System.out.println(c);
public static ChecksumAlgorithm valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ChecksumAlgorithm getByExtension(File file)
public String getAlgorithm()
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.