Package org.ccil.cowan.tagsoup
Class PYXScanner
java.lang.Object
org.ccil.cowan.tagsoup.PYXScanner
- All Implemented Interfaces:
Scanner
A Scanner that accepts PYX format instead of HTML.
Useful primarily for debugging.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
void
resetDocumentLocator
(String publicid, String systemid) Reset the embedded locator.void
scan
(Reader r, ScanHandler h) Invoke a scanner.void
Signal to the scanner to start CDATA content mode.
-
Constructor Details
-
PYXScanner
public PYXScanner()
-
-
Method Details
-
resetDocumentLocator
Description copied from interface:Scanner
Reset the embedded locator.- Specified by:
resetDocumentLocator
in interfaceScanner
- Parameters:
publicid
- The publicid of the sourcesystemid
- The systemid of the source
-
scan
Description copied from interface:Scanner
Invoke a scanner.- Specified by:
scan
in interfaceScanner
- Parameters:
r
- A source of characters to scanh
- A ScanHandler to report events to- Throws:
IOException
SAXException
-
startCDATA
public void startCDATA()Description copied from interface:Scanner
Signal to the scanner to start CDATA content mode.- Specified by:
startCDATA
in interfaceScanner
-
main
- Throws:
IOException
SAXException
-