public class UnicodeEscapingReader
extends java.io.Reader
No attempt has been made to optimize this class for speed or space.
| Constructor and Description |
|---|
UnicodeEscapingReader(java.io.Reader reader,
SourceBuffer sourceBuffer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this reader by calling close on the underlying reader.
|
int |
getUnescapedUnicodeColumnCount() |
int |
getUnescapedUnicodeOffsetCount() |
int |
read()
Gets the next character from the underlying reader,
translating escapes as required.
|
int |
read(char[] cbuf,
int off,
int len)
Reads characters from the underlying reader.
|
void |
setLexer(CharScanner lexer)
Sets the lexer that is using this reader.
|
public UnicodeEscapingReader(java.io.Reader reader,
SourceBuffer sourceBuffer)
reader - The reader that this reader will filter over.public void setLexer(CharScanner lexer)
public int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionReader.read(char[],int,int)public int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionReader.close()public int getUnescapedUnicodeColumnCount()
public int getUnescapedUnicodeOffsetCount()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOExceptionReader.close()