public class HTMLScanner.SpecialScanner extends Object implements HTMLScanner.Scanner
Modifier and Type | Field and Description |
---|---|
protected String |
fElementName
Name of element whose content needs to be scanned as text.
|
protected boolean |
fStyle
True if <style> element.
|
protected boolean |
fTextarea
True if <textarea> element.
|
protected boolean |
fTitle
True if <title> element.
|
Constructor and Description |
---|
SpecialScanner() |
Modifier and Type | Method and Description |
---|---|
boolean |
scan(boolean complete)
Scan.
|
protected void |
scanCharacters(org.apache.xerces.util.XMLStringBuffer buffer,
int delimiter)
Scan characters.
|
HTMLScanner.Scanner |
setElementName(String ename)
Sets the element name.
|
protected String fElementName
protected boolean fStyle
protected boolean fTextarea
protected boolean fTitle
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(org.apache.xerces.util.XMLStringBuffer buffer, int delimiter) throws IOException
IOException
Copyright © 2017. All rights reserved.