Class SourceStringReader

java.lang.Object
java.io.Reader
java.io.StringReader
org.apache.calcite.util.SourceStringReader
All Implemented Interfaces:
Closeable, AutoCloseable, Readable

public class SourceStringReader extends StringReader
Extension to StringReader that allows the original string to be recovered.
  • Constructor Details

    • SourceStringReader

      public SourceStringReader(String s)
      Creates a source string reader.
      Parameters:
      s - String providing the character stream
  • Method Details

    • getSourceString

      public String getSourceString()
      Returns the source string.