public class StringByteTool extends Object
| Constructor and Description |
|---|
StringByteTool() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
fromNullableStringByteArray(byte[] values) |
static String |
fromUtf8Bytes(byte[] bytes) |
static String |
fromUtf8Bytes(byte[] bytes,
int offset,
int length) |
static String |
fromUtf8BytesOffset(byte[] bytes,
int offset) |
static byte[] |
getByteArray(String str,
Charset charset) |
static byte[] |
getNullableStringByteArray(List<String> valuesWithNulls) |
static byte[] |
getUtf8Bytes(String str) |
static int |
numUtf8Bytes(String str) |
static int |
toUtf8Bytes(String str,
byte[] destination,
int offset) |
public static int numUtf8Bytes(String str)
public static byte[] getUtf8Bytes(String str)
public static byte[] getNullableStringByteArray(List<String> valuesWithNulls)
public static int toUtf8Bytes(String str, byte[] destination, int offset)
public static String fromUtf8Bytes(byte[] bytes, int offset, int length)
public static String fromUtf8Bytes(byte[] bytes)
public static String fromUtf8BytesOffset(byte[] bytes, int offset)
Copyright © 2009–2021. All rights reserved.