|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joe_e.charset.ASCII
public final class ASCII
ASCII I/O.
Method Summary | |
---|---|
static String |
decode(byte[] buffer)
Decodes a US-ASCII string. |
static String |
decode(byte[] buffer,
int off,
int len)
Decodes a US-ASCII string. |
static byte[] |
encode(String text)
Encodes a string in US-ASCII. |
static Reader |
input(InputStream in)
Constructs an ASCII reader. |
static Writer |
output(OutputStream out)
Constructs an ASCII 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
IndexOutOfBoundsException
public static Reader input(InputStream in)
in
- The binary input stream
public static Writer output(OutputStream out)
out
- the output stream.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |