docs: public String getString() throws IOException {
          ByteArrayInputStream in = new ByteArrayInputStream(buf);
          int                  c;
          StringWriter         w = new StringWriter();
          while (((c = in.read()) != 0) && (c != -1)) {
              w.write((char) c);
          }
          return w.getBuffer().toString();
      }