public class UTFEncode
extends java.lang.Object
Constructor and Description |
---|
UTFEncode() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(java.lang.String str)
Decodes the specified String to UTF-8
|
static java.lang.String |
encode(java.lang.String str)
Encodes the specified string to UTF-8
|
static void |
main(java.lang.String[] args) |
public static byte[] decode(java.lang.String str)
str
- String that is to be decodedpublic static java.lang.String encode(java.lang.String str)
String
- that is to be encodedpublic static void main(java.lang.String[] args)