|
HTML Parser Home Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.htmlparser.scanners.TagScanner
public class TagScanner
TagScanner is an abstract superclass, subclassed to create specific scanners.
When asked to scan the tag, this class does nothing other than perform the
tag's semantic action.
Use TagScanner when you have a meta task to do like setting the BASE url for
the page when a BASE tag is encountered.
If you want to match end tags and handle special syntax between tags,
then you'll probably want to subclass CompositeTagScanner
instead.
Constructor Summary | |
---|---|
TagScanner()
Create a (non-composite) tag scanner. |
Method Summary | |
---|---|
Tag |
scan(Tag tag,
Lexer lexer,
NodeList stack)
Scan the tag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TagScanner()
Method Detail |
---|
public Tag scan(Tag tag, Lexer lexer, NodeList stack) throws ParserException
scan
in interface Scanner
tag
- The tag to scan.lexer
- Provides html page access.stack
- The parse stack. May contain pending tags that enclose
this tag.
ParserException
- if an unrecoverable problem occurs.
|
© 2005 Derrick Oswald Jul 26, 2009
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
HTML Parser is an open source library released under LGPL. | |