Class HTMLScanner.ContentScanner

    • Constructor Detail

      • ContentScanner

        public ContentScanner()
    • Method Detail

      • scan

        public boolean 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:
        True if additional scanning is required.
        Throws:
        IOException - Thrown if I/O error occurs.
      • scanStartElement

        protected String 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:
        ename
        Throws:
        IOException - in case of io problems
      • scanAttribute

        protected boolean 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 void scanAttributeUnquotedValue​(org.htmlunit.cyberneko.HTMLScanner.CurrentEntity currentEntity,
                                                  XMLString attribValue,
                                                  XMLString plainAttribValue)
                                           throws IOException
        Throws:
        IOException
      • scanAttributeQuotedValue

        protected void scanAttributeQuotedValue​(int currentQuote,
                                                org.htmlunit.cyberneko.HTMLScanner.CurrentEntity currentEntity,
                                                XMLString attribValue,
                                                XMLString plainAttribValue,
                                                boolean normalizeAttributes)
                                         throws IOException
        Throws:
        IOException