|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.joe_e.charset.UTF8
public final class UTF8
UTF-8 I/O.
| Method Summary | |
|---|---|
static String |
decode(byte[] buffer)
Decodes a UTF-8 string. |
static String |
decode(byte[] buffer,
int off,
int len)
Decodes a UTF-8 string. |
static byte[] |
encode(String text)
Encodes a string in UTF-8. |
static Reader |
input(InputStream in)
Constructs a UTF-8 reader. |
static Writer |
output(OutputStream out)
Constructs a UTF-8 writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static byte[] encode(String text)
text - The text to encode.
public static String decode(byte[] buffer)
decode(buffer, 0, buffer.length).
buffer - the ASCII-encoded string to decode
IndexOutOfBoundsException
public static String decode(byte[] buffer,
int off,
int len)
buffer - the ASCII-encoded string to decodeoff - where to start decodinglen - how many bytes to decode
IndexOutOfBoundsExceptionpublic static Reader input(InputStream in)
in - The binary input stream.public static Writer output(OutputStream out)
out - The binary output stream.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||