Package org.htmlparser.scanners
Class StyleScanner
java.lang.Object
org.htmlparser.scanners.TagScanner
org.htmlparser.scanners.CompositeTagScanner
org.htmlparser.scanners.StyleScanner
- All Implemented Interfaces:
Serializable
,Scanner
The StyleScanner handles style elements.
It gathers all interior nodes into one undifferentiated string node.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.htmlparser.scanners.CompositeTagScanner
addChild, createVirtualEndTag, finishTag, isTagToBeEndedFor
-
Constructor Details
-
StyleScanner
public StyleScanner()Create a style scanner.
-
-
Method Details
-
scan
Scan for style definitions. Accumulates text from the page, until </[a-zA-Z] is encountered.- Specified by:
scan
in interfaceScanner
- Overrides:
scan
in classCompositeTagScanner
- Parameters:
tag
- The tag this scanner is responsible for.lexer
- The source of CDATA.stack
- The parse stack, not used.- Returns:
- The resultant tag (may be unchanged).
- Throws:
ParserException
- if an unrecoverable problem occurs.
-