Class Parser

java.lang.Object
  |
  +--Parser

public class Parser
extends java.lang.Object

A parser for HTML.


Constructor Summary
Parser()
           
 
Method Summary
static DocumentModel parse(java.lang.String url_str)
          Parses a HTML document.
static DocumentModel parse(java.net.URL url)
          Parses a HTML document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser()
Method Detail

parse

public static DocumentModel parse(java.lang.String url_str)
Parses a HTML document.
Parameters:
url_str - the string representation of the URL to be parsed.
Returns:
a DocumentModel.

parse

public static DocumentModel parse(java.net.URL url)
Parses a HTML document.
Parameters:
url - the URL to be parsed.
Returns:
a DocumentModel.