org.apache.cocoon.core.xml.impl
Class JaxpSAXParser.DtdCommentEater
java.lang.Object
org.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
next
protected LexicalHandler next
inDTD
protected boolean inDTD
JaxpSAXParser.DtdCommentEater
public JaxpSAXParser.DtdCommentEater(LexicalHandler nextHandler)
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.