|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.meterware.httpunit.parsing.HTMLParserFactory
Factory for creating HTML parsers. Parser customization properties can be specified but do not necessarily work for every parser type.
Constructor Summary | |
HTMLParserFactory()
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HTMLParserFactory()
Method Detail |
public static void reset()
public static void useJTidyParser()
public static void useNekoHTMLParser()
public static void setHTMLParser(HTMLParser htmlParser)
public static HTMLParser getHTMLParser()
public static boolean isPreserveTagCase()
public static void setPreserveTagCase(boolean preserveTagCase)
setReturnHTMLDocument(boolean)
public static boolean isReturnHTMLDocument()
public static void setReturnHTMLDocument(boolean returnHTMLDocument)
setPreserveTagCase(boolean)
public static boolean isParserWarningsEnabled()
public static void setParserWarningsEnabled(boolean enabled)
public static void removeHTMLParserListener(HTMLParserListener el)
public static void addHTMLParserListener(HTMLParserListener el)
|
Copyright © 2000-2003 Russell Gold. See license agreement for rights granted. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |