Package org.frankframework.xml
Class BodyOnlyFilter
java.lang.Object
org.xml.sax.helpers.XMLFilterImpl
org.frankframework.xml.FullXmlFilter
org.frankframework.xml.BodyOnlyFilter
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
,LexicalHandler
,XMLFilter
,XMLReader
XmlFilter that skips startDocument and endDocument,
to be able to parse some additional body elements into and existing XML stream.
- Author:
- Gerrit van Brakel
-
Field Summary
Fields inherited from class org.frankframework.xml.FullXmlFilter
log
-
Constructor Summary
ConstructorDescriptionBodyOnlyFilter
(ContentHandler handler) BodyOnlyFilter
(ContentHandler handler, boolean skipRoot) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
endElement
(String uri, String localname, String qname) boolean
void
setSkipRoot
(boolean skipRoot) void
void
startElement
(String uri, String localname, String qname, Attributes attributes) Methods inherited from class org.frankframework.xml.FullXmlFilter
comment, endCDATA, endDTD, endEntity, setContentHandler, setLexicalHandler, setParent, setParentsLexicalHandler, startCDATA, startDTD, startEntity
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
BodyOnlyFilter
public BodyOnlyFilter() -
BodyOnlyFilter
-
BodyOnlyFilter
-
-
Method Details
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classXMLFilterImpl
- Throws:
SAXException
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classXMLFilterImpl
- Throws:
SAXException
-
startElement
public void startElement(String uri, String localname, String qname, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classXMLFilterImpl
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classXMLFilterImpl
- Throws:
SAXException
-
isSkipRoot
public boolean isSkipRoot() -
setSkipRoot
public void setSkipRoot(boolean skipRoot)
-