final class UnicodeEscapesDecodingReader extends Reader
| Modifier and Type | Field and Description |
|---|---|
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.
|
| Constructor and Description |
|---|
UnicodeEscapesDecodingReader(Reader reader)
Creates an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
private int |
readInternal()
Implements read() without checking if this reader is closed.
|
private static final int NO_CHAR
private Reader reader
private int peekc
private final char[] code
UnicodeEscapesDecodingReader(Reader reader)
public int read()
throws IOException
read in class ReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionprivate int readInternal()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.