Class HTMLScanner.ContentScanner

java.lang.Object
org.htmlunit.cyberneko.HTMLScanner.ContentScanner
All Implemented Interfaces:
HTMLScanner.Scanner
Enclosing class:
HTMLScanner

public class HTMLScanner.ContentScanner extends Object implements HTMLScanner.Scanner
The primary HTML document scanner.
  • Constructor Details

    • ContentScanner

      public ContentScanner()
  • Method Details

    • scan

      public int scan(boolean complete) throws IOException
      Scan.
      Specified by:
      scan in interface HTMLScanner.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

      protected void scanCharacters() throws IOException
      Throws:
      IOException
    • scanCDATA

      protected int scanCDATA() throws IOException
      Throws:
      IOException
    • scanComment

      protected int scanComment() throws IOException
      Throws:
      IOException
    • scanCommentContent

      protected int scanCommentContent(XMLString buffer) throws IOException
      Throws:
      IOException
    • scanCDataContent

      protected int scanCDataContent(XMLString xmlString) throws IOException
      Throws:
      IOException
    • scanPI

      protected int scanPI() throws IOException
      Throws:
      IOException
    • scanStartElement

      protected int scanStartElement(boolean[] empty) throws IOException
      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

      protected int scanAttribute(XMLAttributesImpl attributes, boolean[] empty) throws IOException
      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

      protected void scanEndElement() throws IOException
      Throws:
      IOException