org.webmacro.util
Class NativeAsciiReader
java.lang.Object
java.io.Reader
java.io.BufferedReader
org.webmacro.util.NativeAsciiReader
- public class NativeAsciiReader
- extends java.io.BufferedReader
Reads a file that has been encoded with Java's unicode escape syntax,
typically converted with native2ascii.
All character sequences like \\uxxxx will be converted to a single unicode
character. Other '\' escaped characters will be passed unchanged. An
error will be thrown if the \\u is not followed by 4 hexadecimal characters
Field Summary |
static java.lang.String |
RCS
|
Fields inherited from class java.io.Reader |
lock |
Method Summary |
int |
read(char[] cbuf,
int off,
int len)
Read a sequence of characters into the given buffer. |
Methods inherited from class java.io.BufferedReader |
close, mark, markSupported, read, readLine, ready, reset, skip |
Methods inherited from class java.io.Reader |
read |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RCS
public static final java.lang.String RCS
- See Also:
- Constant Field Values
NativeAsciiReader
public NativeAsciiReader(java.io.Reader in,
int sz)
NativeAsciiReader
public NativeAsciiReader(java.io.Reader in)
read
public int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
- Read a sequence of characters into the given buffer. Since we're
extending BufferedReader, it is efficient enough to read one character
at a time
- Throws:
java.io.IOException