docs: private static String inputStreamToString(InputStream in, String encoding) throws IOException {
  
          ByteArrayOutputStream outStream = new ByteArrayOutputStream();
          byte[] data = new byte[BUFFER_SIZE];
          int count = -1;
          while ((count = in.read(data, 0, BUFFER_SIZE)) != -1) {
              outStream.write(data, 0, count);
          }
          return new String(outStream.toByteArray(), encoding);
      }