org.ccil.cowan.tagsoup

Interface Scanner

public interface Scanner

An interface allowing Parser to invoke scanners.
Method Summary
voidresetDocumentLocator(String publicid, String systemid)
Reset the embedded locator.
voidscan(Reader r, ScanHandler h)
Invoke a scanner.
voidstartCDATA()
Signal to the scanner to start CDATA content mode.

Method Detail

resetDocumentLocator

public void resetDocumentLocator(String publicid, String systemid)
Reset the embedded locator.

Parameters: publicid The publicid of the source systemid The systemid of the source

scan

public void scan(Reader r, ScanHandler h)
Invoke a scanner.

Parameters: r A source of characters to scan h A ScanHandler to report events to

startCDATA

public void startCDATA()
Signal to the scanner to start CDATA content mode.
Licence: Academic Free License 3.0 and/or GPL 2.0