FilterReader that unescapes the "Unicode Escapes" as described in JLS7 3.10.6.
Notice that it is possible to formulate invalid escape sequences, e.g. "\u123g" ("g" is not a valid hex
character). This is handled by throwing a java.-derived UnicodeUnescapeException.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public int | |
| public int | read(char[]
Destination buffer cbuf, int Offset at which to start storing characters off, int Maximum number of characters to read len)Overrides java. FilterReader#read(char[], int, int).
|
| oddPrecedingBackslashes | back to summary |
|---|---|
| private boolean oddPrecedingBackslashes | |
| unreadChar | back to summary |
|---|---|
| private int unreadChar | |
| UnicodeUnescapeReader | back to summary |
|---|---|
| public UnicodeUnescapeReader(Reader in) | |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws IOException Simple unit testing. | |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. Overrides
| |
| read | back to summary |
|---|---|
| public int read(char[] cbuf, int off, int len) throws IOException Overrides java. Overrides
| |