com.atlassian.confluence.content.render.xhtml
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegateXmlOutputFactory
public DelegateXmlOutputFactory(XMLOutputFactory staxXmlOutputFactory)
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(Writer stream)
throws XMLStreamException
- Specified by:
createXMLStreamWriter in interface XmlOutputFactory- Specified by:
createXMLStreamWriter in class XMLOutputFactory
- Throws:
XMLStreamException
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream stream)
throws XMLStreamException
- Specified by:
createXMLStreamWriter in interface XmlOutputFactory- Specified by:
createXMLStreamWriter in class XMLOutputFactory
- Throws:
XMLStreamException
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream stream,
String encoding)
throws XMLStreamException
- Specified by:
createXMLStreamWriter in interface XmlOutputFactory- Specified by:
createXMLStreamWriter in class XMLOutputFactory
- Throws:
XMLStreamException
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(Result result)
throws XMLStreamException
- Specified by:
createXMLStreamWriter in interface XmlOutputFactory- Specified by:
createXMLStreamWriter in class XMLOutputFactory
- Throws:
XMLStreamException
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(Result result)
throws XMLStreamException
- Specified by:
createXMLEventWriter in interface XmlOutputFactory- Specified by:
createXMLEventWriter in class XMLOutputFactory
- Throws:
XMLStreamException
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream stream)
throws XMLStreamException
- Specified by:
createXMLEventWriter in interface XmlOutputFactory- Specified by:
createXMLEventWriter in class XMLOutputFactory
- Throws:
XMLStreamException
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream stream,
String encoding)
throws XMLStreamException
- Specified by:
createXMLEventWriter in interface XmlOutputFactory- Specified by:
createXMLEventWriter in class XMLOutputFactory
- Throws:
XMLStreamException
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(Writer stream)
throws XMLStreamException
- Specified by:
createXMLEventWriter in interface XmlOutputFactory- Specified by:
createXMLEventWriter in class XMLOutputFactory
- Throws:
XMLStreamException
setProperty
public void setProperty(String name,
Object value)
throws IllegalArgumentException
- Specified by:
setProperty in interface XmlOutputFactory- Specified by:
setProperty in class XMLOutputFactory
- Throws:
IllegalArgumentException
getProperty
public Object getProperty(String name)
throws IllegalArgumentException
- Specified by:
getProperty in interface XmlOutputFactory- Specified by:
getProperty in class XMLOutputFactory
- Throws:
IllegalArgumentException
isPropertySupported
public boolean isPropertySupported(String name)
- Specified by:
isPropertySupported in interface XmlOutputFactory- Specified by:
isPropertySupported in class XMLOutputFactory
Copyright © 2003–2015 Atlassian. All rights reserved.