public enum HashUtil extends Enum<HashUtil>
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(String str) |
static String |
decodeToString(String str) |
static byte[] |
encode(String str) |
static String |
encodeToString(String str) |
String |
hash(byte[] bytes) |
String |
hash(Path path) |
String |
hash(String str) |
static HashUtil |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HashUtil[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static HashUtil[] values()
for (HashUtil c : HashUtil.values()) System.out.println(c);
public static HashUtil 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 String hash(byte[] bytes)
public String hash(Path path) throws IOException
IOExceptionpublic static byte[] encode(String str)
public static byte[] decode(String str)
Copyright © 2017–2021. All rights reserved.