docs: public static String readString(Reader is, char term) throws IOException {
          CharArrayWriter baos = new CharArrayWriter();
  
          int ch_int;
          while ((ch_int = is.read()) >= 0) {
              final char ch = (char) ch_int;
              if (ch == term) {
                  break;
              }
              baos.write(ch);
          }
  
          return baos.toString();
      }