org.cyberneko.html

Class HTMLScanner.SpecialScanner

public class HTMLScanner.SpecialScanner extends Object implements HTMLScanner.Scanner

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>.

Author: Andy Clark

Field Summary
protected StringfElementName
Name of element whose content needs to be scanned as text.
protected booleanfScript
True if <script> element.
protected booleanfStyle
True if <style> element.
protected booleanfTextarea
True if <textarea> element.
Method Summary
booleanscan(boolean complete)
Scan.
protected voidscanCharacters(XMLStringBuffer buffer, int delimiter)
Scan characters.
HTMLScanner.ScannersetElementName(String ename)
Sets the element name.

Field Detail

fElementName

protected String fElementName
Name of element whose content needs to be scanned as text.

fScript

protected boolean fScript
True if <script> element.

fStyle

protected boolean fStyle
True if <style> element.

fTextarea

protected boolean fTextarea
True if <textarea> element.

Method Detail

scan

public boolean scan(boolean complete)
Scan.

scanCharacters

protected void scanCharacters(XMLStringBuffer buffer, int delimiter)
Scan characters.

setElementName

public HTMLScanner.Scanner setElementName(String ename)
Sets the element name.
(C) Copyright 2002-2005, Andy Clark. All rights reserved.