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
public class ConfluenceXmlOutputFactory extends DelegateXmlOutputFactory
This "Confluence" implementation ofXmlOutputFactory
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
Constructors Constructor Description ConfluenceXmlOutputFactory(XMLOutputFactory xmlOutputFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConfluenceXmlOutputFactory
create()
static ConfluenceXmlOutputFactory
createFragmentXmlOutputFactory()
XMLEventWriter
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 Detail
-
ConfluenceXmlOutputFactory
public ConfluenceXmlOutputFactory(XMLOutputFactory xmlOutputFactory)
-
-
Method Detail
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(Writer writer) throws XMLStreamException
- Specified by:
createXMLEventWriter
in interfaceXmlOutputFactory
- Overrides:
createXMLEventWriter
in classDelegateXmlOutputFactory
- Throws:
XMLStreamException
-
create
public static ConfluenceXmlOutputFactory create()
- Returns:
- a default ConfluenceXmlOutputFactory
- Since:
- 7.20
-
createFragmentXmlOutputFactory
public static ConfluenceXmlOutputFactory createFragmentXmlOutputFactory()
- Returns:
- a
ConfluenceXmlOutputFactory
configured to output XML fragments - Since:
- 7.20
-
-