org.ccil.cowan.tagsoup
Class PYXScanner

java.lang.Object
  extended by org.ccil.cowan.tagsoup.PYXScanner
All Implemented Interfaces:
Scanner

public class PYXScanner
extends java.lang.Object
implements Scanner

A Scanner that accepts PYX format instead of HTML. Useful primarily for debugging.


Constructor Summary
PYXScanner()
           
 
Method Summary
static void main(java.lang.String[] argv)
           
 void resetDocumentLocator(java.lang.String publicid, java.lang.String systemid)
          Reset the embedded locator.
 void scan(java.io.Reader r, ScanHandler h)
          Invoke a scanner.
 void startCDATA()
          Signal to the scanner to start CDATA content mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PYXScanner

public PYXScanner()
Method Detail

resetDocumentLocator

public void resetDocumentLocator(java.lang.String publicid,
                                 java.lang.String systemid)
Description copied from interface: Scanner
Reset the embedded locator.

Specified by:
resetDocumentLocator in interface Scanner
Parameters:
publicid - The publicid of the source
systemid - The systemid of the source

scan

public void scan(java.io.Reader r,
                 ScanHandler h)
          throws java.io.IOException,
                 org.xml.sax.SAXException
Description copied from interface: Scanner
Invoke a scanner.

Specified by:
scan in interface Scanner
Parameters:
r - A source of characters to scan
h - A ScanHandler to report events to
Throws:
java.io.IOException
org.xml.sax.SAXException

startCDATA

public void startCDATA()
Description copied from interface: Scanner
Signal to the scanner to start CDATA content mode.

Specified by:
startCDATA in interface Scanner

main

public static void main(java.lang.String[] argv)
                 throws java.io.IOException,
                        org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException


Licence: Academic Free License 3.0 and/or GPL 2.0