|
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.Object org.joe_e.charset.ASCII
public final class ASCII
ASCII I/O.
Method Summary | |
---|---|
static java.lang.String |
decode(byte[] buffer)
Decodes a US-ASCII string. |
static java.lang.String |
decode(byte[] buffer,
int off,
int len)
Decodes a US-ASCII string. |
static byte[] |
encode(java.lang.String text)
Encodes a string in US-ASCII. |
static java.io.Reader |
input(java.io.InputStream in)
Constructs an ASCII reader. |
static java.io.Writer |
output(java.io.OutputStream out)
Constructs an ASCII 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.IndexOutOfBoundsException
public 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 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.