code: public void appendln(String str) {
  		BufferedReader rdr = new BufferedReader(new StringReader(str));
  		while (true) {
  			String line = null;
  			try {
  				line = rdr.readLine();
  			} catch (IOException e) {
  				// shouldn't ever happen since we're using a StringReader
  				throw new RuntimeException(e);
  			}
  			if (line != null) {
  				lines.add(new LineInfo(line));
  				continue;
  			}
  			break;
  		}
  	}
docs: Appends the lines in the specified string to the current source.
  
  @param str