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:
- [email protected]
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
comment
(char[] ch, int start, int length) void
endCDATA()
void
endDTD()
void
Get the lexical event handler.boolean
void
setLexicalHandler
(LexicalHandler handler) Set the lexical event handler.void
setNamespacePrefixes
(boolean v) void
void
void
startEntity
(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:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
endDTD
- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
endEntity
- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
comment
- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-