Package javanet.staxutils.helpers
Class XMLFilterImplEx
- java.lang.Object
-
- org.xml.sax.helpers.XMLFilterImpl
-
- javanet.staxutils.helpers.XMLFilterImplEx
-
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler,LexicalHandler,XMLFilter,XMLReader
public class XMLFilterImplEx extends XMLFilterImpl implements LexicalHandler
Extension to XMLFilterImpl that implements LexicalHandler.- Author:
- Paul.Sandoz@Sun.Com
-
-
Field Summary
Fields Modifier and Type Field Description protected LexicalHandlerlexicalHandlerprotected booleannamespacePrefixes
-
Constructor Summary
Constructors Constructor Description XMLFilterImplEx()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomment(char[] ch, int start, int length)voidendCDATA()voidendDTD()voidendEntity(String name)LexicalHandlergetLexicalHandler()Get the lexical event handler.booleangetNamespacePrefixes()voidsetLexicalHandler(LexicalHandler handler)Set the lexical event handler.voidsetNamespacePrefixes(boolean v)voidstartCDATA()voidstartDTD(String name, String publicId, String systemId)voidstartEntity(String name)-
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Field Detail
-
lexicalHandler
protected LexicalHandler lexicalHandler
-
namespacePrefixes
protected boolean namespacePrefixes
-
-
Method Detail
-
setNamespacePrefixes
public void setNamespacePrefixes(boolean v)
-
getNamespacePrefixes
public boolean getNamespacePrefixes()
-
setLexicalHandler
public void setLexicalHandler(LexicalHandler handler)
Set the lexical event handler.- Parameters:
handler- the new lexical handler
-
getLexicalHandler
public LexicalHandler getLexicalHandler()
Get the lexical event handler.- Returns:
- The current lexical handler, or null if none was set.
-
startDTD
public void startDTD(String name, String publicId, String systemId) throws SAXException
- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
public void endDTD() throws SAXException- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
public void startEntity(String name) throws SAXException
- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
public void endEntity(String name) throws SAXException
- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
startCDATA
public void startCDATA() throws SAXException- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
public void endCDATA() throws SAXException- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
comment
public void comment(char[] ch, int start, int length) throws SAXException- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-
-