org.apache.excalibur.xml.impl
Class JaxpParser.DtdCommentEater
java.lang.Object
org.apache.excalibur.xml.impl.JaxpParser.DtdCommentEater
- All Implemented Interfaces:
- org.xml.sax.ext.LexicalHandler
- Enclosing class:
- JaxpParser
private static class JaxpParser.DtdCommentEater
- extends java.lang.Object
- implements org.xml.sax.ext.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 |
private boolean |
inDTD
|
private org.xml.sax.ext.LexicalHandler |
next
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
next
private org.xml.sax.ext.LexicalHandler next
inDTD
private boolean inDTD
JaxpParser.DtdCommentEater
public JaxpParser.DtdCommentEater(org.xml.sax.ext.LexicalHandler nextHandler)
startDTD
public void startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
- Specified by:
startDTD
in interface org.xml.sax.ext.LexicalHandler
- Throws:
org.xml.sax.SAXException
endDTD
public void endDTD()
throws org.xml.sax.SAXException
- Specified by:
endDTD
in interface org.xml.sax.ext.LexicalHandler
- Throws:
org.xml.sax.SAXException
startEntity
public void startEntity(java.lang.String name)
throws org.xml.sax.SAXException
- Specified by:
startEntity
in interface org.xml.sax.ext.LexicalHandler
- Throws:
org.xml.sax.SAXException
endEntity
public void endEntity(java.lang.String name)
throws org.xml.sax.SAXException
- Specified by:
endEntity
in interface org.xml.sax.ext.LexicalHandler
- Throws:
org.xml.sax.SAXException
startCDATA
public void startCDATA()
throws org.xml.sax.SAXException
- Specified by:
startCDATA
in interface org.xml.sax.ext.LexicalHandler
- Throws:
org.xml.sax.SAXException
endCDATA
public void endCDATA()
throws org.xml.sax.SAXException
- Specified by:
endCDATA
in interface org.xml.sax.ext.LexicalHandler
- Throws:
org.xml.sax.SAXException
comment
public void comment(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- Specified by:
comment
in interface org.xml.sax.ext.LexicalHandler
- Throws:
org.xml.sax.SAXException