|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.util.UTF8
Implements UTF-8 conversion routines as described by RFC-2279
| Constructor Summary | |
UTF8()
Deprecated. |
|
| Method Summary | |
static byte[] |
StringToUtf8(java.lang.String src)
Converts a string to an array of UTF-8 characters. |
static int |
Utf16ToUtf8(char[] src,
byte[] dst)
Converts an array of characters in UTF-16/Unicode format to an array of characters in UTF-8 characters. |
static java.lang.String |
Utf8ToString(byte[] src)
Converts an array of characters in UTF-8 format to a Unicode string. |
static int |
Utf8ToUtf16(byte[] src,
char[] dst)
Converts an array of characters in UTF-8 format to an array of UTF-16/Unicode characters. |
static int |
Utf8ToUtf16Char(java.io.InputStream src)
Returns a single UTF-16 character by reading as many characters as necessary from a given InputStream, which is a stream of UTF-8 bytes. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UTF8()
| Method Detail |
public static java.lang.String Utf8ToString(byte[] src)
src - Source string, in UTF-8 format.
public static int Utf8ToUtf16Char(java.io.InputStream src)
src - Source stream, in UTF-8 format.
public static int Utf8ToUtf16(byte[] src,
char[] dst)
src - Source string, in UTF-8 format.dst - Output buffer for unicode characters.
public static byte[] StringToUtf8(java.lang.String src)
src - Source string.
public static int Utf16ToUtf8(char[] src,
byte[] dst)
src - Source string, in unicode format.dst - Output buffer for utf-8 characters.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||