Exemplo n.º 1
0
  protected void init() {
    if (this.bufreader == null) {
      // if resolve cl lines is on, merge cl lines
      if (this.cl) this.text = TextReader.resolvecontlines1(this.text);

      // strip comments
      this.text = stripcomments();

      // if ws is on, strip out unwanted whitespace stuff.
      if (this.ws) this.text = TextReader.stripws(this.text);

      /* initialize buffered reader */
      this.bufreader = new BufferedReader(new StringReader(this.text));
    }
  }