Class ConfluenceXmlOutputFactory
java.lang.Object
javax.xml.stream.XMLOutputFactory
com.atlassian.confluence.content.render.xhtml.DelegateXmlOutputFactory
com.atlassian.confluence.content.render.xhtml.ConfluenceXmlOutputFactory
- All Implemented Interfaces:
XmlOutputFactory
This "Confluence" implementation of
XmlOutputFactory
was introduced primarily to deal with
STAX-58.
The intention is to override the factory method DelegateXmlOutputFactory.createXMLStreamWriter(java.io.Writer)
to return our own customized
writer that fixes the issue of marshalling some characters incorrectly.
-
Field Summary
Fields inherited from class javax.xml.stream.XMLOutputFactory
IS_REPAIRING_NAMESPACES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfluenceXmlOutputFactory
create()
static ConfluenceXmlOutputFactory
createXMLEventWriter
(Writer writer) Methods inherited from class com.atlassian.confluence.content.render.xhtml.DelegateXmlOutputFactory
createXMLEventWriter, createXMLEventWriter, createXMLEventWriter, createXMLStreamWriter, createXMLStreamWriter, createXMLStreamWriter, createXMLStreamWriter, getProperty, isPropertySupported, setProperty
Methods inherited from class javax.xml.stream.XMLOutputFactory
newDefaultFactory, newFactory, newFactory, newInstance, newInstance
-
Constructor Details
-
ConfluenceXmlOutputFactory
-
-
Method Details
-
createXMLEventWriter
- Specified by:
createXMLEventWriter
in interfaceXmlOutputFactory
- Overrides:
createXMLEventWriter
in classDelegateXmlOutputFactory
- Throws:
XMLStreamException
-
create
- Returns:
- a default ConfluenceXmlOutputFactory
- Since:
- 7.20
-
createFragmentXmlOutputFactory
- Returns:
- a
ConfluenceXmlOutputFactory
configured to output XML fragments - Since:
- 7.20
-