com.atlassian.confluence.content.render.xhtml
Class DelegateXmlOutputFactory

java.lang.Object
  extended by javax.xml.stream.XMLOutputFactory
      extended by 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.


Field Summary
 
Fields inherited from class javax.xml.stream.XMLOutputFactory
IS_REPAIRING_NAMESPACES
 
Constructor Summary
DelegateXmlOutputFactory(javax.xml.stream.XMLOutputFactory staxXmlOutputFactory)
           
 
Method Summary
 javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream stream)
           
 javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream stream, java.lang.String encoding)
           
 javax.xml.stream.XMLEventWriter createXMLEventWriter(javax.xml.transform.Result result)
           
 javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.Writer stream)
           
 javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream)
           
 javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream, java.lang.String encoding)
           
 javax.xml.stream.XMLStreamWriter createXMLStreamWriter(javax.xml.transform.Result result)
           
 javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.Writer stream)
           
 java.lang.Object getProperty(java.lang.String name)
           
 boolean isPropertySupported(java.lang.String name)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 
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
 

Constructor Detail

DelegateXmlOutputFactory

public DelegateXmlOutputFactory(javax.xml.stream.XMLOutputFactory staxXmlOutputFactory)
Method Detail

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-2014 Atlassian. All Rights Reserved.