org.htmlparser.scanners
Interface Scanner
- CompositeTagScanner, JspScanner, ScriptScanner, StyleScanner, TagScanner
Generic interface for scanning.
Tags needing specialized operations can provide an object that implements
this interface via getThisScanner().
By default non-composite tags simply perform the semantic action and
return while composite tags will gather their children.
scan
public Tag scan(Tag tag,
Lexer lexer,
NodeList stack)
throws ParserException
Scan the tag.
The Lexer is provided in order to do a lookahead operation.
tag
- HTML tag to be scanned for identification.lexer
- Provides html page access.stack
- The parse stack. May contain pending tags that enclose
this tag. Nodes on the stack should be considered incomplete.
- The resultant tag (may be unchanged).
| © 2005 Derrick Oswald Mai 08, 2008 |
HTML Parser is an open source library released under LGPL. |  |