| 
 | ref_send API 2.17 defensive programming in Java | |||||||||
| 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 java.lang.String | decode(byte[] buffer)Decodes a UTF-8 string. | 
| static java.lang.String | decode(byte[] buffer,
             int off,
             int len)Decodes a UTF-8 string. | 
| static byte[] | encode(java.lang.String text)Encodes a string in UTF-8. | 
| static java.io.Reader | input(java.io.InputStream in)Constructs a UTF-8 reader. | 
| static java.io.Writer | output(java.io.OutputStream out)Constructs a UTF-8 writer. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static byte[] encode(java.lang.String text)
text - The text to encode.
public static java.lang.String decode(byte[] buffer)
decode(buffer, 0, buffer.length).
buffer - the ASCII-encoded string to decode
java.lang.IndexOutOfBoundsException
public static java.lang.String decode(byte[] buffer,
                                      int off,
                                      int len)
buffer - the ASCII-encoded string to decodeoff - where to start decodinglen - how many bytes to decode
java.lang.IndexOutOfBoundsExceptionpublic static java.io.Reader input(java.io.InputStream in)
in - The binary input stream.public static java.io.Writer output(java.io.OutputStream out)
out - The binary output stream.| 
 | ref_send API 2.17 defensive programming in Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.