Package org.codehaus.groovy.antlr
Class UnicodeEscapingReader
- java.lang.Object
-
- java.io.Reader
-
- org.codehaus.groovy.antlr.UnicodeEscapingReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
@Deprecated public class UnicodeEscapingReader extends Reader
Deprecated.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.
-
-
Constructor Summary
Constructors Constructor Description UnicodeEscapingReader(Reader reader, SourceBuffer sourceBuffer)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.Closes this reader by calling close on the underlying reader.intgetUnescapedUnicodeColumnCount()Deprecated.intgetUnescapedUnicodeOffsetCount()Deprecated.intread()Deprecated.Gets the next character from the underlying reader, translating escapes as required.intread(char[] cbuf, int off, int len)Deprecated.Reads characters from the underlying reader.voidsetLexer(CharScanner lexer)Deprecated.Sets the lexer that is using this reader.-
Methods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, ready, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
UnicodeEscapingReader
public UnicodeEscapingReader(Reader reader, SourceBuffer sourceBuffer)
Deprecated.Constructor.- Parameters:
reader- The reader that this reader will filter over.
-
-
Method Detail
-
setLexer
public void setLexer(CharScanner lexer)
Deprecated.Sets the lexer that is using this reader. Must be called before the lexer is used.
-
read
public int read(char[] cbuf, int off, int len) throws IOExceptionDeprecated.Reads characters from the underlying reader.- Specified by:
readin classReader- Throws:
IOException- See Also:
Reader.read(char[],int,int)
-
read
public int read() throws IOExceptionDeprecated.Gets the next character from the underlying reader, translating escapes as required.- Overrides:
readin classReader- Throws:
IOException- See Also:
Reader.close()
-
getUnescapedUnicodeColumnCount
public int getUnescapedUnicodeColumnCount()
Deprecated.
-
getUnescapedUnicodeOffsetCount
public int getUnescapedUnicodeOffsetCount()
Deprecated.
-
close
public void close() throws IOExceptionDeprecated.Closes this reader by calling close on the underlying reader.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException- See Also:
Reader.close()
-
-