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 StAXXMLOutputFactoryabstract class and the ConfluenceXmlOutputFactoryinterface. Instances of this class are also instances of each of those other types. It eraps an instance of the StAXXMLOutputFactoryand delegates all methods to that.Note that the StAX
XMLOutputFactoryand the ConfluenceXmlOutputFactorytypes declare the same public methods, and so this class only needs to define them once, and delegate them all to the wrappedXMLOutputFactoryinstance.
-
-
Field Summary
-
Fields inherited from class javax.xml.stream.XMLOutputFactory
IS_REPAIRING_NAMESPACES
-
-
Constructor Summary
Constructors Constructor Description DelegateXmlOutputFactory(XMLOutputFactory staxXmlOutputFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLEventWritercreateXMLEventWriter(OutputStream stream)XMLEventWritercreateXMLEventWriter(OutputStream stream, String encoding)XMLEventWritercreateXMLEventWriter(Writer stream)XMLEventWritercreateXMLEventWriter(Result result)XMLStreamWritercreateXMLStreamWriter(OutputStream stream)XMLStreamWritercreateXMLStreamWriter(OutputStream stream, String encoding)XMLStreamWritercreateXMLStreamWriter(Writer stream)XMLStreamWritercreateXMLStreamWriter(Result result)ObjectgetProperty(String name)booleanisPropertySupported(String name)voidsetProperty(String name, Object value)-
Methods inherited from class javax.xml.stream.XMLOutputFactory
newDefaultFactory, newFactory, newFactory, newInstance, newInstance
-
-
-
-
Constructor Detail
-
DelegateXmlOutputFactory
public DelegateXmlOutputFactory(XMLOutputFactory staxXmlOutputFactory)
-
-
Method Detail
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(Writer stream) throws XMLStreamException
- Specified by:
createXMLStreamWriterin interfaceXmlOutputFactory- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream stream) throws XMLStreamException
- Specified by:
createXMLStreamWriterin interfaceXmlOutputFactory- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream stream, String encoding) throws XMLStreamException
- Specified by:
createXMLStreamWriterin interfaceXmlOutputFactory- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException
- Specified by:
createXMLStreamWriterin interfaceXmlOutputFactory- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException
- Specified by:
createXMLEventWriterin interfaceXmlOutputFactory- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream stream) throws XMLStreamException
- Specified by:
createXMLEventWriterin interfaceXmlOutputFactory- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream stream, String encoding) throws XMLStreamException
- Specified by:
createXMLEventWriterin interfaceXmlOutputFactory- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(Writer stream) throws XMLStreamException
- Specified by:
createXMLEventWriterin interfaceXmlOutputFactory- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
setProperty
public void setProperty(String name, Object value) throws IllegalArgumentException
- Specified by:
setPropertyin interfaceXmlOutputFactory- Specified by:
setPropertyin classXMLOutputFactory- Throws:
IllegalArgumentException
-
getProperty
public Object getProperty(String name) throws IllegalArgumentException
- Specified by:
getPropertyin interfaceXmlOutputFactory- Specified by:
getPropertyin classXMLOutputFactory- Throws:
IllegalArgumentException
-
isPropertySupported
public boolean isPropertySupported(String name)
- Specified by:
isPropertySupportedin interfaceXmlOutputFactory- Specified by:
isPropertySupportedin classXMLOutputFactory
-
-