java.lang.Object
org.htmlunit.cyberneko.HTMLScanner.ContentScanner
- All Implemented Interfaces:
HTMLScanner.Scanner
- Enclosing class:
- HTMLScanner
The primary HTML document scanner.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintscan(boolean complete) Scan.protected intscanAttribute(XMLAttributesImpl attributes, boolean[] empty) Scans a real attribute.protected intscanAttributeQuotedValue(int currentQuote, org.htmlunit.cyberneko.HTMLScanner.CurrentEntity currentEntity, XMLString attribValue, XMLString plainAttribValue, boolean normalizeAttributes) protected intscanAttributeUnquotedValue(org.htmlunit.cyberneko.HTMLScanner.CurrentEntity currentEntity, XMLString attribValue, XMLString plainAttribValue) protected intprotected intscanCDataContent(XMLString xmlString) protected voidprotected intprotected intscanCommentContent(XMLString buffer) protected voidprotected intscanPI()protected intscanStartElement(boolean[] empty) Scans a start element.
-
Constructor Details
-
ContentScanner
public ContentScanner()
-
-
Method Details
-
scan
Scan.- Specified by:
scanin interfaceHTMLScanner.Scanner- Parameters:
complete- True if the scanner should not return until scanning is complete.- Returns:
- One of SCAN_TRUE, SCAN_EOF, or SCAN_FALSE indicating the scanning result.
- Throws:
IOException- Thrown if I/O error occurs.
-
scanCharacters
- Throws:
IOException
-
scanCDATA
- Throws:
IOException
-
scanComment
- Throws:
IOException
-
scanCommentContent
- Throws:
IOException
-
scanCDataContent
- Throws:
IOException
-
scanPI
- Throws:
IOException
-
scanStartElement
Scans a start element.- Parameters:
empty- Is used for a second return value to indicate whether the start element tag is empty (e.g. "/>").- Returns:
- One of SCAN_TRUE, SCAN_FALSE, or SCAN_EOF.
- Throws:
IOException- in case of io problems
-
scanAttribute
Scans a real attribute.- Parameters:
attributes- The list of attributes.empty- Is used for a second return value to indicate whether the start element tag is empty (e.g. "/>").- Returns:
- success
- Throws:
IOException- in case of io problems
-
scanAttributeUnquotedValue
protected int scanAttributeUnquotedValue(org.htmlunit.cyberneko.HTMLScanner.CurrentEntity currentEntity, XMLString attribValue, XMLString plainAttribValue) throws IOException - Throws:
IOException
-
scanAttributeQuotedValue
protected int scanAttributeQuotedValue(int currentQuote, org.htmlunit.cyberneko.HTMLScanner.CurrentEntity currentEntity, XMLString attribValue, XMLString plainAttribValue, boolean normalizeAttributes) throws IOException - Throws:
IOException
-
scanEndElement
- Throws:
IOException
-