org.apache.cocoon.core.xml.impl
Class JaxpSAXParser.DtdCommentEater

java.lang.Object
  extended byorg.apache.cocoon.core.xml.impl.JaxpSAXParser.DtdCommentEater
All Implemented Interfaces:
LexicalHandler
Enclosing class:
JaxpSAXParser

protected static class JaxpSAXParser.DtdCommentEater
extends Object
implements LexicalHandler

A LexicalHandler implementation that strips all comment events between startDTD and endDTD. In all other cases the events are forwarded to another LexicalHandler.


Field Summary
protected  boolean inDTD
           
protected  LexicalHandler next
           
 
Constructor Summary
JaxpSAXParser.DtdCommentEater(LexicalHandler nextHandler)
           
 
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

next

protected LexicalHandler next

inDTD

protected boolean inDTD
Constructor Detail

JaxpSAXParser.DtdCommentEater

public JaxpSAXParser.DtdCommentEater(LexicalHandler nextHandler)
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

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

comment

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


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.