|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cyberneko.html.HTMLScanner.SpecialScanner
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>.
Field Summary | |
protected String |
fElementName
Name of element whose content needs to be scanned as text. |
protected boolean |
fScript
True if <script> element. |
protected boolean |
fStyle
True if <style> element. |
protected boolean |
fTextarea
True if <textarea> element. |
Constructor Summary | |
HTMLScanner.SpecialScanner()
|
Method Summary | |
boolean |
scan(boolean complete)
Scan. |
protected void |
scanCharacters(XMLStringBuffer buffer,
boolean comment)
Scan characters. |
HTMLScanner.Scanner |
setElementName(String ename)
Sets the element name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String fElementName
protected boolean fScript
protected boolean fStyle
protected boolean fTextarea
Constructor Detail |
public HTMLScanner.SpecialScanner()
Method Detail |
public HTMLScanner.Scanner setElementName(String ename)
public boolean scan(boolean complete) throws IOException
scan
in interface HTMLScanner.Scanner
complete
- True if the scanner should not return until
scanning is complete.
IOException
- Thrown if I/O error occurs.protected void scanCharacters(XMLStringBuffer buffer, boolean comment) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |