|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cyberneko.html.HTMLScanner.SpecialScanner
public class 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 java.lang.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(org.apache.xerces.util.XMLStringBuffer buffer,
int delimiter)
Scan characters. |
HTMLScanner.Scanner |
setElementName(java.lang.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 java.lang.String fElementName
protected boolean fScript
protected boolean fStyle
protected boolean fTextarea
Constructor Detail |
---|
public HTMLScanner.SpecialScanner()
Method Detail |
---|
public HTMLScanner.Scanner setElementName(java.lang.String ename)
public boolean scan(boolean complete) throws java.io.IOException
scan
in interface HTMLScanner.Scanner
complete
- True if the scanner should not return until
scanning is complete.
java.io.IOException
- Thrown if I/O error occurs.protected void scanCharacters(org.apache.xerces.util.XMLStringBuffer buffer, int delimiter) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |