Class UnicodeEscapingReader

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Readable

    public class UnicodeEscapingReader
    extends Reader
    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 Detail

      • UnicodeEscapingReader

        public UnicodeEscapingReader​(Reader reader,
                                     SourceBuffer sourceBuffer)
        Constructor.
        Parameters:
        reader - The reader that this reader will filter over.
    • Method Detail

      • setLexer

        public void setLexer​(CharScanner lexer)
        Sets the lexer that is using this reader. Must be called before the lexer is used.
      • getUnescapedUnicodeColumnCount

        public int getUnescapedUnicodeColumnCount()
      • getUnescapedUnicodeOffsetCount

        public int getUnescapedUnicodeOffsetCount()