public final class EncodingUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Charset |
encoding
Encoding with which the Picodata server operates (UTF-8)
|
| Modifier and Type | Method and Description |
|---|---|
static String |
decodeString(byte[] encodedString)
Decode an array of bytes into a string.
|
static String |
decodeString(byte[] encodedString,
int offset,
int length)
Decode an array of bytes into a string.
|
static byte[] |
encodeString(String str)
Encode a string to an array of bytes.
|
public static final Charset encoding
public static String decodeString(byte[] encodedString, int offset, int length) throws IOException
encodedString - a byte array containing the string to decodeoffset - the offset in encodedString of the first byte of the encoded
representationlength - the length, in bytes, of the encoded representationIOException - if something goes wrongpublic static String decodeString(byte[] encodedString) throws IOException
encodedString - a byte array containing the string to decodeIOException - if something goes wrongpublic static byte[] encodeString(String str)
str - the string to encodeCopyright © 2026 Picodata. All rights reserved.