Class DelegateXmlOutputFactory
java.lang.Object
javax.xml.stream.XMLOutputFactory
com.atlassian.confluence.content.render.xhtml.DelegateXmlOutputFactory
- All Implemented Interfaces:
XmlOutputFactory
- Direct Known Subclasses:
ConfluenceXmlOutputFactory
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.
-
Field Summary
Fields inherited from class javax.xml.stream.XMLOutputFactory
IS_REPAIRING_NAMESPACES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateXMLEventWriter
(OutputStream stream) createXMLEventWriter
(OutputStream stream, String encoding) createXMLEventWriter
(Writer stream) createXMLEventWriter
(Result result) createXMLStreamWriter
(OutputStream stream) createXMLStreamWriter
(OutputStream stream, String encoding) createXMLStreamWriter
(Writer stream) createXMLStreamWriter
(Result result) getProperty
(String name) boolean
isPropertySupported
(String name) void
setProperty
(String name, Object value) Methods inherited from class javax.xml.stream.XMLOutputFactory
newDefaultFactory, newFactory, newFactory, newInstance, newInstance
-
Constructor Details
-
DelegateXmlOutputFactory
-
-
Method Details
-
createXMLStreamWriter
- Specified by:
createXMLStreamWriter
in interfaceXmlOutputFactory
- Specified by:
createXMLStreamWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
createXMLStreamWriter
- Specified by:
createXMLStreamWriter
in interfaceXmlOutputFactory
- Specified by:
createXMLStreamWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream stream, String encoding) throws XMLStreamException - Specified by:
createXMLStreamWriter
in interfaceXmlOutputFactory
- Specified by:
createXMLStreamWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
createXMLStreamWriter
- Specified by:
createXMLStreamWriter
in interfaceXmlOutputFactory
- Specified by:
createXMLStreamWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
createXMLEventWriter
- Specified by:
createXMLEventWriter
in interfaceXmlOutputFactory
- Specified by:
createXMLEventWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
createXMLEventWriter
- Specified by:
createXMLEventWriter
in interfaceXmlOutputFactory
- Specified by:
createXMLEventWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream stream, String encoding) throws XMLStreamException - Specified by:
createXMLEventWriter
in interfaceXmlOutputFactory
- Specified by:
createXMLEventWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
createXMLEventWriter
- Specified by:
createXMLEventWriter
in interfaceXmlOutputFactory
- Specified by:
createXMLEventWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
setProperty
- Specified by:
setProperty
in interfaceXmlOutputFactory
- Specified by:
setProperty
in classXMLOutputFactory
- Throws:
IllegalArgumentException
-
getProperty
- Specified by:
getProperty
in interfaceXmlOutputFactory
- Specified by:
getProperty
in classXMLOutputFactory
- Throws:
IllegalArgumentException
-
isPropertySupported
- Specified by:
isPropertySupported
in interfaceXmlOutputFactory
- Specified by:
isPropertySupported
in classXMLOutputFactory
-