public class UnicodeUnescapeReader
extends java.io.FilterReader
FilterReader
that unescapes the "Unicode Escapes"
as described in
the
Java Language Specification, 2nd edition.
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 RuntimeException
-derived
UnicodeUnescapeException
.
Constructor and Description |
---|
UnicodeUnescapeReader(java.io.Reader in) |
public UnicodeUnescapeReader(java.io.Reader in)
in
- public int read() throws java.io.IOException
FilterReader.read()
.read
in class java.io.FilterReader
UnicodeUnescapeException
- Invalid escape sequence encounteredjava.io.IOException
public int read(char[] cbuf, int off, int len) throws java.io.IOException
FilterReader.read(char[], int, int)
.read
in class java.io.FilterReader
java.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
Copyright © 2001-2012. All Rights Reserved.