Package org.htmlunit.cyberneko
Class HTMLScanner.PlainTextScanner
- java.lang.Object
-
- org.htmlunit.cyberneko.HTMLScanner.PlainTextScanner
-
- All Implemented Interfaces:
HTMLScanner.Scanner
- Enclosing class:
- HTMLScanner
public class HTMLScanner.PlainTextScanner extends java.lang.Object implements HTMLScanner.Scanner
Special scanner used forPLAINTEXT
-
-
Field Summary
Fields Modifier and Type Field Description private XMLString
xmlString_
A string buffer.
-
Constructor Summary
Constructors Constructor Description PlainTextScanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
scan(boolean complete)
Scans part of the document.protected void
scanCharacters(XMLString buffer, boolean complete)
-
-
-
Field Detail
-
xmlString_
private final XMLString xmlString_
A string buffer.
-
-
Method Detail
-
scan
public boolean scan(boolean complete) throws java.io.IOException
Description copied from interface:HTMLScanner.Scanner
Scans part of the document. This interface allows scanning to be performed in a pulling manner.- Specified by:
scan
in interfaceHTMLScanner.Scanner
- Parameters:
complete
- True if the scanner should not return until scanning is complete.- Returns:
- True if additional scanning is required.
- Throws:
java.io.IOException
- Thrown if I/O error occurs.
-
scanCharacters
protected void scanCharacters(XMLString buffer, boolean complete) throws java.io.IOException
- Throws:
java.io.IOException
-
-