public final class Mutf8
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
decode(ByteInput in,
char[] out)
Decodes bytes from
in into out until a delimiter 0x00 is
encountered. |
static void |
encode(byte[] dst,
int offset,
java.lang.String s)
Encodes the modified UTF-8 bytes corresponding to
s into dst, starting at offset. |
static byte[] |
encode(java.lang.String s)
Returns an array containing the modified UTF-8 form of
s. |
public static java.lang.String decode(ByteInput in, char[] out) throws java.io.UTFDataFormatException
in into out until a delimiter 0x00 is
encountered. Returns a new string containing the decoded characters.java.io.UTFDataFormatExceptionpublic static void encode(byte[] dst,
int offset,
java.lang.String s)
s into dst, starting at offset.public static byte[] encode(java.lang.String s)
throws java.io.UTFDataFormatException
s.java.io.UTFDataFormatExceptionCopyright © 2020. All Rights Reserved.