com.meterware.httpunit.parsing
public abstract class HTMLParserFactory extends Object
Since: 1.5.2
Method Summary | |
---|---|
static void | addHTMLParserListener(HTMLParserListener el)
Add an HTML Parser listener.
|
static HTMLParser | getHTMLParser()
Returns the current selected parser. |
static boolean | isParserWarningsEnabled()
Returns true if parser warnings are enabled.
|
static boolean | isPreserveTagCase()
Returns true if the current parser will preserve the case of HTML tags and attributes. |
static boolean | isReturnHTMLDocument()
Returns true if the current parser will return an HTMLDocument object rather than a Document object. |
static void | removeHTMLParserListener(HTMLParserListener el)
Remove an HTML Parser listener.
|
static void | reset()
Resets all settings to their default values. |
static void | setHTMLParser(HTMLParser htmlParser)
Specifies the parser to use. |
static void | setParserWarningsEnabled(boolean enabled)
If true, tells the parser to display warning messages. |
static void | setPreserveTagCase(boolean preserveTagCase)
Specifies whether the parser should preserve the case of HTML tags and attributes. |
static void | setReturnHTMLDocument(boolean returnHTMLDocument)
Specifies whether the parser should return an HTMLDocument object rather than a Document object.
|
static void | useJTidyParser()
Selects the JTidy parser, if present. |
static void | useNekoHTMLParser()
Selects the NekoHTML parser, if present. |
See Also: HTMLParserFactory
See Also: HTMLParserFactory