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 javax.xml.stream.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.
Fields inherited from class javax.xml.stream.XMLOutputFactory |
IS_REPAIRING_NAMESPACES |
Methods inherited from class javax.xml.stream.XMLOutputFactory |
newFactory, newFactory, newInstance, newInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegateXmlOutputFactory
public DelegateXmlOutputFactory(javax.xml.stream.XMLOutputFactory staxXmlOutputFactory)
createXMLStreamWriter
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.Writer stream)
throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLStreamWriter
in interface XmlOutputFactory
- Specified by:
createXMLStreamWriter
in class javax.xml.stream.XMLOutputFactory
- Throws:
javax.xml.stream.XMLStreamException
createXMLStreamWriter
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream)
throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLStreamWriter
in interface XmlOutputFactory
- Specified by:
createXMLStreamWriter
in class javax.xml.stream.XMLOutputFactory
- Throws:
javax.xml.stream.XMLStreamException
createXMLStreamWriter
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream,
java.lang.String encoding)
throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLStreamWriter
in interface XmlOutputFactory
- Specified by:
createXMLStreamWriter
in class javax.xml.stream.XMLOutputFactory
- Throws:
javax.xml.stream.XMLStreamException
createXMLStreamWriter
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(javax.xml.transform.Result result)
throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLStreamWriter
in interface XmlOutputFactory
- Specified by:
createXMLStreamWriter
in class javax.xml.stream.XMLOutputFactory
- Throws:
javax.xml.stream.XMLStreamException
createXMLEventWriter
public javax.xml.stream.XMLEventWriter createXMLEventWriter(javax.xml.transform.Result result)
throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLEventWriter
in interface XmlOutputFactory
- Specified by:
createXMLEventWriter
in class javax.xml.stream.XMLOutputFactory
- Throws:
javax.xml.stream.XMLStreamException
createXMLEventWriter
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream stream)
throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLEventWriter
in interface XmlOutputFactory
- Specified by:
createXMLEventWriter
in class javax.xml.stream.XMLOutputFactory
- Throws:
javax.xml.stream.XMLStreamException
createXMLEventWriter
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream stream,
java.lang.String encoding)
throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLEventWriter
in interface XmlOutputFactory
- Specified by:
createXMLEventWriter
in class javax.xml.stream.XMLOutputFactory
- Throws:
javax.xml.stream.XMLStreamException
createXMLEventWriter
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.Writer stream)
throws javax.xml.stream.XMLStreamException
- Specified by:
createXMLEventWriter
in interface XmlOutputFactory
- Specified by:
createXMLEventWriter
in class javax.xml.stream.XMLOutputFactory
- Throws:
javax.xml.stream.XMLStreamException
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
throws java.lang.IllegalArgumentException
- Specified by:
setProperty
in interface XmlOutputFactory
- Specified by:
setProperty
in class javax.xml.stream.XMLOutputFactory
- Throws:
java.lang.IllegalArgumentException
getProperty
public java.lang.Object getProperty(java.lang.String name)
throws java.lang.IllegalArgumentException
- Specified by:
getProperty
in interface XmlOutputFactory
- Specified by:
getProperty
in class javax.xml.stream.XMLOutputFactory
- Throws:
java.lang.IllegalArgumentException
isPropertySupported
public boolean isPropertySupported(java.lang.String name)
- Specified by:
isPropertySupported
in interface XmlOutputFactory
- Specified by:
isPropertySupported
in class javax.xml.stream.XMLOutputFactory
Copyright © 2003-2013 Atlassian. All Rights Reserved.