public enum ChecksumAlgorithm extends Enum<ChecksumAlgorithm>
| 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()
public String getExt()
public String getType()
Copyright © 2006–2015 The Apache Software Foundation. All rights reserved.