| java.lang.Object java.io.Reader org.codehaus.groovy.antlr.UnicodeEscapingReader
UnicodeEscapingReader | public class UnicodeEscapingReader extends Reader (Code) | | 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 optimise this class for speed or
space.
version: $Revision: 2222 $ |
Method Summary | |
public void | close() Closes this reader by calling close on the underlying reader. | public int | read(char cbuf, int off, int len) Reads characters from the underlying reader. | public int | read() Gets the next character from the underlying reader,
translating escapes as required. | public void | setLexer(CharScanner lexer) Sets the lexer that is using this reader. |
UnicodeEscapingReader | public UnicodeEscapingReader(Reader reader, SourceBuffer sourceBuffer)(Code) | | Constructor.
Parameters: reader - The reader that this reader will filter over. |
setLexer | public void setLexer(CharScanner lexer)(Code) | | Sets the lexer that is using this reader. Must be called before the
lexer is used.
|
|
|