|
|||||||||
| Home >> All >> com >> meterware >> httpunit >> [ parsing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.meterware.httpunit.parsing
Interface HTMLParser

- All Known Implementing Classes:
- JTidyHTMLParser, NekoHTMLParser
- public interface HTMLParser
A front end to a DOM parser that can handle HTML.
- Since:
- 1.5.2
| Method Summary | |
java.lang.String |
getCleanedText(java.lang.String string)
Removes any string artifacts placed in the text by the parser. |
void |
parse(java.net.URL baseURL,
java.lang.String pageText,
DocumentAdapter adapter)
Parses the specified text string as a Document, registering it in the HTMLPage. |
boolean |
supportsParserWarnings()
Returns true if this parser can display parser warnings. |
boolean |
supportsPreserveTagCase()
Returns true if this parser supports preservation of the case of tag and attribute names. |
boolean |
supportsReturnHTMLDocument()
Returns true if this parser can return an HTMLDocument object. |
| Method Detail |
parse
public void parse(java.net.URL baseURL, java.lang.String pageText, DocumentAdapter adapter) throws java.io.IOException, org.xml.sax.SAXException
- Parses the specified text string as a Document, registering it in the HTMLPage.
Any error reporting will be annotated with the specified URL.
getCleanedText
public java.lang.String getCleanedText(java.lang.String string)
- Removes any string artifacts placed in the text by the parser. For example, a parser may choose to encode
an HTML entity as a special character. This method should convert that character to normal text.
supportsPreserveTagCase
public boolean supportsPreserveTagCase()
- Returns true if this parser supports preservation of the case of tag and attribute names.
supportsReturnHTMLDocument
public boolean supportsReturnHTMLDocument()
- Returns true if this parser can return an HTMLDocument object.
supportsParserWarnings
public boolean supportsParserWarnings()
- Returns true if this parser can display parser warnings.
|
|||||||||
| Home >> All >> com >> meterware >> httpunit >> [ parsing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC