|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Reader
net.jini.config.UnicodeEscapesDecodingReader
final class UnicodeEscapesDecodingReader
A Reader that converts Unicode escape sequences, throwing IOException for malformed escapes.
Field Summary | |
---|---|
private char[] |
code
Buffer to hold the Unicode value being parsed. |
private static int |
NO_CHAR
Marker for when peekc is empty. |
private int |
peekc
A peeked character -- the character after a backslash if it wasn't 'u' -- or NO_CHAR if no peek was done. |
private Reader |
reader
The source of characters to translate. |
Fields inherited from class java.io.Reader |
---|
lock |
Constructor Summary | |
---|---|
UnicodeEscapesDecodingReader(Reader reader)
Creates an instance of this class. |
Method Summary | |
---|---|
void |
close()
|
int |
read()
|
int |
read(char[] cbuf,
int off,
int len)
|
private int |
readInternal()
Implements read() without checking if this reader is closed. |
Methods inherited from class java.io.Reader |
---|
mark, markSupported, read, read, ready, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int NO_CHAR
private Reader reader
private int peekc
private final char[] code
Constructor Detail |
---|
UnicodeEscapesDecodingReader(Reader reader)
Method Detail |
---|
public int read() throws IOException
read
in class Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
private int readInternal() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in class Reader
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |