public final class Strings extends Object
| Constructor and Description |
|---|
Strings() |
| Modifier and Type | Method and Description |
|---|---|
static char[] |
asCharArray(byte[] bytes)
Do a simple conversion of an array of 8 bit characters into a string.
|
static String |
fromByteArray(byte[] bytes)
Convert an array of 8 bit characters into a string.
|
static byte[] |
toUTF8ByteArray(char[] string) |
static void |
toUTF8ByteArray(char[] string,
OutputStream sOut) |
public static byte[] toUTF8ByteArray(char[] string)
public static void toUTF8ByteArray(char[] string,
OutputStream sOut)
throws IOException
IOExceptionpublic static String fromByteArray(byte[] bytes)
bytes - 8 bit characters.public static char[] asCharArray(byte[] bytes)
bytes - 8 bit characters.Copyright © 2019–2025. All rights reserved.