Class WebTools.HTML

  • Enclosing class:
    WebTools

    public static final class WebTools.HTML
    extends java.lang.Object
    HTML tools for handling html source code.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getHTML​(java.lang.String url)
      Gets HTML source code from specified URL.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getHTML

        public static java.lang.String getHTML​(java.lang.String url)
                                        throws java.io.IOException
        Gets HTML source code from specified URL.
        Parameters:
        url - URL to download from
        Returns:
        HTML source code as string
        Throws:
        java.io.IOException - if error occurs
        java.net.MalformedURLException - if url is invalid