Class HTMLScanner.SpecialScanner
java.lang.Object
org.htmlunit.cyberneko.HTMLScanner.SpecialScanner
- All Implemented Interfaces:
HTMLScanner.Scanner
- Enclosing class:
HTMLScanner
Special scanner used for elements whose content needs to be scanned as plain
text, ignoring markup such as elements and entity references. For example:
<SCRIPT> and <COMMENT>.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final XMLStringA string buffer.protected StringName of element whose content needs to be scanned as text.private final QNameA qualified name.protected booleanTrue if <style> element.protected booleanTrue if <textarea> element.protected booleanTrue if <title> element. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanscan(boolean complete) Scan.protected voidscanCharacters(XMLString buffer, int delimiter) setElementName(String ename)
-
Field Details
-
fElementName
Name of element whose content needs to be scanned as text. -
fStyle
protected boolean fStyleTrue if <style> element. -
fTextarea
protected boolean fTextareaTrue if <textarea> element. -
fTitle
protected boolean fTitleTrue if <title> element. -
fQName_
A qualified name. -
charBuffer_
A string buffer.
-
-
Constructor Details
-
SpecialScanner
public SpecialScanner()
-
-
Method Details
-
setElementName
-
scan
Scan.- Specified by:
scanin interfaceHTMLScanner.Scanner- Parameters:
complete- True if the scanner should not return until scanning is complete.- Returns:
- True if additional scanning is required.
- Throws:
IOException- Thrown if I/O error occurs.
-
scanCharacters
- Throws:
IOException
-