Package org.codehaus.groovy.antlr
Class UnicodeEscapingReader
java.lang.Object
java.io.Reader
org.codehaus.groovy.antlr.UnicodeEscapingReader
- All Implemented Interfaces:
- java.io.Closeable,- java.lang.AutoCloseable,- java.lang.Readable
@Deprecated
public class UnicodeEscapingReader
extends java.io.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.
- 
Field SummaryFields inherited from class java.io.Readerlock
- 
Constructor SummaryConstructors Constructor Description UnicodeEscapingReader(java.io.Reader reader, SourceBuffer sourceBuffer)Deprecated.Constructor.
- 
Method SummaryModifier 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.Readermark, markSupported, nullReader, read, read, ready, reset, skip, transferToMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
UnicodeEscapingReaderDeprecated.Constructor.- Parameters:
- reader- The reader that this reader will filter over.
 
 
- 
- 
Method Details- 
setLexerDeprecated.Sets the lexer that is using this reader. Must be called before the lexer is used.
- 
readpublic int read(char[] cbuf, int off, int len) throws java.io.IOExceptionDeprecated.Reads characters from the underlying reader.- Specified by:
- readin class- java.io.Reader
- Throws:
- java.io.IOException
- See Also:
- Reader.read(char[],int,int)
 
- 
readpublic int read() throws java.io.IOExceptionDeprecated.Gets the next character from the underlying reader, translating escapes as required.- Overrides:
- readin class- java.io.Reader
- Throws:
- java.io.IOException
- See Also:
- Reader.close()
 
- 
getUnescapedUnicodeColumnCountpublic int getUnescapedUnicodeColumnCount()Deprecated.
- 
getUnescapedUnicodeOffsetCountpublic int getUnescapedUnicodeOffsetCount()Deprecated.
- 
closepublic void close() throws java.io.IOExceptionDeprecated.Closes this reader by calling close on the underlying reader.- Specified by:
- closein interface- java.lang.AutoCloseable
- Specified by:
- closein interface- java.io.Closeable
- Specified by:
- closein class- java.io.Reader
- Throws:
- java.io.IOException
- See Also:
- Reader.close()
 
 
-