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 ofXmlOutputFactorywas 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 ConfluenceXmlOutputFactorycreate()static ConfluenceXmlOutputFactorycreateFragmentXmlOutputFactory()XMLEventWritercreateXMLEventWriter(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:
createXMLEventWriterin interfaceXmlOutputFactory- Overrides:
createXMLEventWriterin classDelegateXmlOutputFactory- Throws:
XMLStreamException
-
create
public static ConfluenceXmlOutputFactory create()
- Returns:
- a default ConfluenceXmlOutputFactory
- Since:
- 7.20
-
createFragmentXmlOutputFactory
public static ConfluenceXmlOutputFactory createFragmentXmlOutputFactory()
- Returns:
- a
ConfluenceXmlOutputFactoryconfigured to output XML fragments - Since:
- 7.20
-
-