public class ByteFormatter
extends java.lang.Object
Constructor and Description |
---|
ByteFormatter(@NotNull byte[] context) |
Modifier and Type | Method and Description |
---|---|
static ByteFormatter |
createFromBase64(@NotNull java.lang.String base64String)
Create and initialize a ByteFormatter from a Base64 encoded string.
|
static ByteFormatter |
createFromHex(@NotNull java.lang.String hexString)
Create and initialize a ByteFormatter from a hex encoded string.
|
ByteFormatter |
sha256()
Calculate the sha256 hash of the current ByteFormatter context and return it as a new
ByteFormatter.
|
java.lang.String |
toHex()
Convert the current ByteFormatter contents to a Hex encoded string and return it.
|
public static ByteFormatter createFromBase64(@NotNull @NotNull java.lang.String base64String)
base64String
- - Base64 encoded string.public static ByteFormatter createFromHex(@NotNull @NotNull java.lang.String hexString)
hexString
- - Hex encoded string.public java.lang.String toHex()
public ByteFormatter sha256()