code: public static HtmlPage toHtmlPage(InputStream inputStream) {
          try {
              return toHtmlPage(IOUtils.toString(inputStream));
          } catch (IOException e) {
              throw new RuntimeException("Error creating HtmlPage from InputStream.", e);
          }
      }
docs: Creates a {@link HtmlPage} from a given {@link InputStream} that reads the HTML code for that page.
  
  @param inputStream {@link InputStream} that reads the HTML code
  @return {@link HtmlPage} for this {@link InputStream}