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
ConstructorsConstructorDescriptionBodyOnlyFilter(ContentHandler handler) BodyOnlyFilter(ContentHandler handler, boolean skipRoot) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidendElement(String uri, String localname, String qname) voidvoidstartElement(String uri, String localname, String qname, Attributes attributes) Methods inherited from class org.frankframework.xml.FullXmlFilter
comment, endCDATA, endDTD, endEntity, setContentHandler, setParent, setParentsLexicalHandler, startCDATA, startDTD, startEntityMethods 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, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
BodyOnlyFilter
public BodyOnlyFilter() -
BodyOnlyFilter
-
BodyOnlyFilter
-
-
Method Details
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classXMLFilterImpl- Throws:
SAXException
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classXMLFilterImpl- Throws:
SAXException
-
startElement
public void startElement(String uri, String localname, String qname, Attributes attributes) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classXMLFilterImpl- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classXMLFilterImpl- Throws:
SAXException
-