Package org.frankframework.xml
Class XmlWriter
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.frankframework.xml.XmlWriter
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
,LexicalHandler
-
Field Summary
-
Constructor Summary
ConstructorDescriptionWhen the implicitStringWriter
is used, it's automatically closed on endDocument.XmlWriter
(OutputStream stream) XmlWriter
(OutputStream stream, boolean closeStreamOnEndDocument) When you supply aWriter
you will have to close it. -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
comment
(char[] ch, int start, int length) void
endCDATA()
void
void
endDTD()
void
endElement
(String uri, String localName, String qName) void
void
endPrefixMapping
(String prefix) void
processingInstruction
(String target, String data) void
setIncludeComments
(boolean includeComments) void
setIncludeXmlDeclaration
(boolean includeXmlDeclaration) void
setNewlineAfterXmlDeclaration
(boolean newlineAfterXmlDeclaration) void
setTextMode
(boolean textMode) void
void
void
void
startElement
(String uri, String localName, String qName, Attributes attributes) void
startEntity
(String arg0) void
startPrefixMapping
(String prefix, String uri) toString()
Methods inherited from class org.xml.sax.helpers.DefaultHandler
error, fatalError, ignorableWhitespace, notationDecl, resolveEntity, setDocumentLocator, skippedEntity, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log -
DISABLE_OUTPUT_ESCAPING
- See Also:
-
ENABLE_OUTPUT_ESCAPING
- See Also:
-
-
Constructor Details
-
XmlWriter
public XmlWriter()When the implicitStringWriter
is used, it's automatically closed on endDocument. -
XmlWriter
When you supply aWriter
you will have to close it. -
XmlWriter
-
XmlWriter
-
XmlWriter
-
-
Method Details
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classDefaultHandler
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Overrides:
startPrefixMapping
in classDefaultHandler
- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Overrides:
endPrefixMapping
in classDefaultHandler
- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
comment
- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
- Overrides:
processingInstruction
in classDefaultHandler
- Throws:
SAXException
-
startDTD
- Specified by:
startDTD
in interfaceLexicalHandler
-
endDTD
- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
- Specified by:
startEntity
in interfaceLexicalHandler
-
endEntity
- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
toString
-
getWriter
-
setIncludeXmlDeclaration
public void setIncludeXmlDeclaration(boolean includeXmlDeclaration) -
setNewlineAfterXmlDeclaration
public void setNewlineAfterXmlDeclaration(boolean newlineAfterXmlDeclaration) -
setIncludeComments
public void setIncludeComments(boolean includeComments) -
setTextMode
public void setTextMode(boolean textMode)
-