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 StAXXMLOutputFactory
abstract class and the ConfluenceXmlOutputFactory
interface. Instances of this class are also instances of each of those other types. It eraps an instance of the StAXXMLOutputFactory
and delegates all methods to that.Note that the StAX
XMLOutputFactory
and the ConfluenceXmlOutputFactory
types declare the same public methods, and so this class only needs to define them once, and delegate them all to the wrappedXMLOutputFactory
instance.
-
-
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 XMLEventWriter
createXMLEventWriter(OutputStream stream)
XMLEventWriter
createXMLEventWriter(OutputStream stream, String encoding)
XMLEventWriter
createXMLEventWriter(Writer stream)
XMLEventWriter
createXMLEventWriter(Result result)
XMLStreamWriter
createXMLStreamWriter(OutputStream stream)
XMLStreamWriter
createXMLStreamWriter(OutputStream stream, String encoding)
XMLStreamWriter
createXMLStreamWriter(Writer stream)
XMLStreamWriter
createXMLStreamWriter(Result result)
Object
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 Detail
-
DelegateXmlOutputFactory
public DelegateXmlOutputFactory(XMLOutputFactory staxXmlOutputFactory)
-
-
Method Detail
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(Writer stream) throws XMLStreamException
- Specified by:
createXMLStreamWriter
in interfaceXmlOutputFactory
- Specified by:
createXMLStreamWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream stream) throws XMLStreamException
- 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
public XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException
- Specified by:
createXMLStreamWriter
in interfaceXmlOutputFactory
- Specified by:
createXMLStreamWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException
- Specified by:
createXMLEventWriter
in interfaceXmlOutputFactory
- Specified by:
createXMLEventWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream stream) throws XMLStreamException
- 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
public XMLEventWriter createXMLEventWriter(Writer stream) throws XMLStreamException
- Specified by:
createXMLEventWriter
in interfaceXmlOutputFactory
- Specified by:
createXMLEventWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
setProperty
public void setProperty(String name, Object value) throws IllegalArgumentException
- Specified by:
setProperty
in interfaceXmlOutputFactory
- Specified by:
setProperty
in classXMLOutputFactory
- Throws:
IllegalArgumentException
-
getProperty
public Object getProperty(String name) throws IllegalArgumentException
- Specified by:
getProperty
in interfaceXmlOutputFactory
- Specified by:
getProperty
in classXMLOutputFactory
- Throws:
IllegalArgumentException
-
isPropertySupported
public boolean isPropertySupported(String name)
- Specified by:
isPropertySupported
in interfaceXmlOutputFactory
- Specified by:
isPropertySupported
in classXMLOutputFactory
-
-