|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Reader
org.codehaus.groovy.antlr.UnicodeEscapingReader
public class UnicodeEscapingReader
Translates GLS-defined unicode escapes into characters. Throws an exception in the event of an invalid unicode escape being detected.
No attempt has been made to optimize this class for speed or space.
Field Summary |
---|
Fields inherited from class java.io.Reader |
---|
lock |
Constructor Summary | |
---|---|
UnicodeEscapingReader(java.io.Reader reader,
SourceBuffer sourceBuffer)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.io.Reader |
---|
mark, markSupported, read, read, ready, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnicodeEscapingReader(java.io.Reader reader, SourceBuffer sourceBuffer)
reader
- The reader that this reader will filter over.Method Detail |
---|
public void setLexer(antlr.CharScanner lexer)
public int read(char[] cbuf, int off, int len) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
Reader.read(char[],int,int)
public int read() throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
Reader.close()
public int getUnescapedUnicodeColumnCount()
public int getUnescapedUnicodeOffsetCount()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.Reader
java.io.IOException
Reader.close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |