public class UTF8Util extends Object
| Constructor and Description |
|---|
UTF8Util() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getStringFromUTF8(byte[] bytearr,
int offset,
int utflen) |
static int |
toUTF8(byte[] outputBuffer,
int number) |
static int |
toUTF8(byte[] outputBuffer,
long number)
Encode the
number into UTF8 |
static int |
toUTF8(byte[] outputBuffer,
short number) |
static byte[] |
toUTF8(String string) |
static int |
toUTF8FromLatin1(byte[] outputBuffer,
String string)
Encode the
string into UTF8, assume the original string is ISO-8859-1 |
public static int toUTF8(byte[] outputBuffer,
short number)
public static int toUTF8(byte[] outputBuffer,
int number)
public static int toUTF8(byte[] outputBuffer,
long number)
number into UTF8outputBuffer - buffer for the encoded numbernumber - The number to be encodedoutputBuffer the encoded stringpublic static int toUTF8FromLatin1(byte[] outputBuffer,
String string)
string into UTF8, assume the original string is ISO-8859-1outputBuffer - buffer for the encoded numberstring - The String to be encodedpublic static byte[] toUTF8(String string)
public static String getStringFromUTF8(byte[] bytearr, int offset, int utflen)
Copyright 2004-2019 Solace Corporation. All rights reserved.