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 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 interface AutoCloseable
close
in class Reader
IOException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.