public final class UTF8 extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
decode(byte[] utf)
Decode the given UTF-8 data.
|
static byte[] |
encode(String s)
Encode the given string.
|
static void |
main(String[] args) |
public static byte[] encode(String s)
public static String decode(byte[] utf)
IllegalArgumentException - if the UTF-8 input is invalidCopyright © 2015. All rights reserved.