code: static String readString(final InputStream is) {
          try (final Scanner s = new Scanner(is, "UTF-8")) {
              s.useDelimiter("\\A");
              if (s.hasNext()) {
                  return s.next();
              } else {
                  return "";
              }
          }
      }
docs: Reads a string from an input stream.
  @param is The input stream.,
  @return A string.