Package com.kohlschutter.boilerpipe.sax
Class HTMLFetcher
- java.lang.Object
-
- com.kohlschutter.boilerpipe.sax.HTMLFetcher
-
public class HTMLFetcher extends java.lang.ObjectA very simple HTTP/HTML fetcher, really just for demo purposes.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.regex.PatternPAT_CHARSET
-
Constructor Summary
Constructors Modifier Constructor Description privateHTMLFetcher()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HTMLDocumentfetch(java.net.URL url)Fetches the document at the given URL, usingURLConnection.
-
-
-
Method Detail
-
fetch
public static HTMLDocument fetch(java.net.URL url) throws java.io.IOException
Fetches the document at the given URL, usingURLConnection.- Parameters:
url-- Returns:
- Throws:
java.io.IOException
-
-