org.cdlib.xtf.xslt
Class XMLStubReader.StubLexicalHandler

Object
  extended by XMLStubReader.StubLexicalHandler
All Implemented Interfaces:
LexicalHandler
Enclosing class:
XMLStubReader

private class XMLStubReader.StubLexicalHandler
extends Object
implements LexicalHandler

Handles 'lexical' events. We mainly need to catch the start of the DTD and turn that even into an unparsed entity declaration so that Saxon will keep a record of it.


Field Summary
private  LexicalHandler out
           
 
Constructor Summary
XMLStubReader.StubLexicalHandler(LexicalHandler out)
           
 
Method Summary
 void comment(char[] ch, int start, int length)
           
 void endCDATA()
           
 void endDTD()
           
 void endEntity(String name)
           
 void startCDATA()
           
 void startDTD(String name, String publicId, String systemId)
           
 void startEntity(String name)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

private LexicalHandler out
Constructor Detail

XMLStubReader.StubLexicalHandler

public XMLStubReader.StubLexicalHandler(LexicalHandler out)
Method Detail

startDTD

public void startDTD(String name,
                     String publicId,
                     String systemId)
              throws SAXException
Specified by:
startDTD in interface LexicalHandler
Throws:
SAXException

endDTD

public void endDTD()
            throws SAXException
Specified by:
endDTD in interface LexicalHandler
Throws:
SAXException

startEntity

public void startEntity(String name)
                 throws SAXException
Specified by:
startEntity in interface LexicalHandler
Throws:
SAXException

endEntity

public void endEntity(String name)
               throws SAXException
Specified by:
endEntity in interface LexicalHandler
Throws:
SAXException

comment

public void comment(char[] ch,
                    int start,
                    int length)
             throws SAXException
Specified by:
comment in interface LexicalHandler
Throws:
SAXException

startCDATA

public void startCDATA()
                throws SAXException
Specified by:
startCDATA in interface LexicalHandler
Throws:
SAXException

endCDATA

public void endCDATA()
              throws SAXException
Specified by:
endCDATA in interface LexicalHandler
Throws:
SAXException