Class DelegateXmlOutputFactory

java.lang.Object
javax.xml.stream.XMLOutputFactory
com.atlassian.confluence.content.render.xhtml.DelegateXmlOutputFactory
All Implemented Interfaces:
XmlOutputFactory
Direct Known Subclasses:
ConfluenceXmlOutputFactory

public class DelegateXmlOutputFactory extends XMLOutputFactory implements XmlOutputFactory
This class acts as an adapter between the StAX XMLOutputFactory abstract class and the Confluence XmlOutputFactory interface. Instances of this class are also instances of each of those other types. It eraps an instance of the StAX XMLOutputFactory and delegates all methods to that.

Note that the StAX XMLOutputFactory and the Confluence XmlOutputFactory types declare the same public methods, and so this class only needs to define them once, and delegate them all to the wrapped XMLOutputFactory instance.