public final class StringEncoding extends Object
| Constructor and Description |
|---|
StringEncoding() |
| Modifier and Type | Method and Description |
|---|---|
static String |
decode(byte[] bytes) |
static String |
decode(byte[] bytes,
int offset,
int length) |
static byte[] |
decodeBase64(String value) |
static byte[] |
encode(String value) |
static String |
encodeBase64(byte[] bytes) |
static String |
format(byte[] bytes) |
static int |
getAsciiByteLength(String value) |
static String |
readAsciiString(byte[] array,
int offset) |
static String |
sha256(String string) |
static UUID |
uuid(String value) |
static int |
writeAsciiString(byte[] array,
int offset,
String value) |
public static int writeAsciiString(byte[] array,
int offset,
String value)
public static String readAsciiString(byte[] array, int offset)
public static int getAsciiByteLength(String value)
public static byte[] encode(String value)
public static String decode(byte[] bytes)
public static String decode(byte[] bytes, int offset, int length)
public static String encodeBase64(byte[] bytes)
public static byte[] decodeBase64(String value)
public static String format(byte[] bytes)
Copyright © 2023 The Apache Software Foundation. All rights reserved.