code: static void append(Appendable outputBuf, CharSequence cs) {
      try {
        outputBuf.append(cs);
      } catch (IOException e) {
        throw new RuntimeException(e);
      }
    }
docs: Helper to append text to the output, propagating any exceptions.