Closeable, AutoCloseable, Readablepublic class UnicodeEscapingReader extends Reader
No attempt has been made to optimize this class for speed or space.
| Constructor | Description |
|---|---|
UnicodeEscapingReader(Reader reader,
SourceBuffer sourceBuffer) |
Constructor.
|
| Modifier and Type | Method | 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(antlr.CharScanner lexer) |
Sets the lexer that is using this reader.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmark, markSupported, read, read, ready, reset, skip, transferTopublic UnicodeEscapingReader(Reader reader, SourceBuffer sourceBuffer)
reader - The reader that this reader will filter over.public void setLexer(antlr.CharScanner lexer)
public int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionReader.read(char[],int,int)public int read()
throws IOException
read in class ReaderIOExceptionReader.close()public int getUnescapedUnicodeColumnCount()
public int getUnescapedUnicodeOffsetCount()
public void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class ReaderIOExceptionReader.close()