private String readInputUntil(char symbol){
  StringBuilder strBuf=new StringBuilder();
  while (!accept(symbol)) {
    strBuf.append((char)data[index]);
    skip();
  }
  return strBuf.toString();
}

private String readInputUntil ( char symbol ) { StringBuilder strBuf = new StringBuilder ( ) ; while ( ! accept ( symbol ) ) { strBuf . append ( ( char ) data [ index ] ) ; skip ( ) ; } return strBuf . toString ( ) ; }
reads input until the given symbol is found .
