public enum ChecksumAlgorithm extends Enum<ChecksumAlgorithm>
Enum Constant and Description |
---|
ASC |
MD5 |
SHA1 |
SHA256 |
SHA384 |
SHA512 |
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm()
Returns the message digest algorithm identifier
|
static Set<String> |
getAllExtensions() |
static ChecksumAlgorithm |
getByExtension(Path file) |
String |
getDefaultExtension()
Returns the default extension of the current algorithm
|
List<String> |
getExt()
Returns the list of extensions
|
String |
getType()
Returns the checksum identifier
|
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 MD5
public static final ChecksumAlgorithm SHA1
public static final ChecksumAlgorithm SHA256
public static final ChecksumAlgorithm SHA384
public static final ChecksumAlgorithm SHA512
public static final ChecksumAlgorithm ASC
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(Path file)
public static Set<String> getAllExtensions()
public String getAlgorithm()
public String getDefaultExtension()
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.