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
Extension to XMLFilterImpl that implements LexicalHandler.
- Author:
- Paul.Sandoz@Sun.Com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcomment(char[] ch, int start, int length) voidendCDATA()voidendDTD()voidGet the lexical event handler.booleanvoidsetLexicalHandler(LexicalHandler handler) Set the lexical event handler.voidsetNamespacePrefixes(boolean v) voidvoidvoidstartEntity(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 Details
-
lexicalHandler
-
namespacePrefixes
protected boolean namespacePrefixes
-
-
Constructor Details
-
XMLFilterImplEx
public XMLFilterImplEx()
-
-
Method Details
-
setNamespacePrefixes
public void setNamespacePrefixes(boolean v) -
getNamespacePrefixes
public boolean getNamespacePrefixes() -
setLexicalHandler
Set the lexical event handler.- Parameters:
handler- the new lexical handler
-
getLexicalHandler
Get the lexical event handler.- Returns:
- The current lexical handler, or null if none was set.
-
startDTD
- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
comment
- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-