org.cyberneko.html
Class HTMLScanner.SpecialScanner
java.lang.Object
|
+--org.cyberneko.html.HTMLScanner.SpecialScanner
- All Implemented Interfaces:
- HTMLScanner.Scanner
- Enclosing class:
- HTMLScanner
- public class HTMLScanner.SpecialScanner
- extends java.lang.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 java.lang.String |
fElementName
Name of element whose content needs to be scanned as text. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fElementName
protected java.lang.String fElementName
- Name of element whose content needs to be scanned as text.
HTMLScanner.SpecialScanner
public HTMLScanner.SpecialScanner()
setElementName
public HTMLScanner.Scanner setElementName(java.lang.String ename)
- Sets the element name.
scan
public boolean scan(boolean complete)
throws java.io.IOException
- Scan.
- Specified by:
scan
in interface HTMLScanner.Scanner
- Following copied from interface:
org.cyberneko.html.HTMLScanner.Scanner
- Parameters:
complete
- True if the scanner should not return until
scanning is complete.- Throws:
java.io.IOException
- Thrown if I/O error occurs.
scanCharacters
protected void scanCharacters(org.apache.xerces.util.XMLStringBuffer buffer)
throws java.io.IOException
- Scan characters.
(C) Copyright 2002, Andy Clark. All rights reserved.