Class HTMLFetcher


  • public class HTMLFetcher
    extends java.lang.Object
    A very simple HTTP/HTML fetcher, really just for demo purposes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.regex.Pattern PAT_CHARSET  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private HTMLFetcher()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static HTMLDocument fetch​(java.net.URL url)
      Fetches the document at the given URL, using URLConnection.
      • Methods inherited from class java.lang.Object

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

      • PAT_CHARSET

        private static final java.util.regex.Pattern PAT_CHARSET
    • Constructor Detail

      • HTMLFetcher

        private HTMLFetcher()
    • Method Detail

      • fetch

        public static HTMLDocument fetch​(java.net.URL url)
                                  throws java.io.IOException
        Fetches the document at the given URL, using URLConnection.
        Parameters:
        url -
        Returns:
        Throws:
        java.io.IOException