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

@param reader {@link Reader} that reads the HTML code
@return {@link HtmlPage} for this {@link Reader}