public class DelegateXmlOutputFactory extends XMLOutputFactory implements XmlOutputFactory
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.
IS_REPAIRING_NAMESPACES
Constructor and Description |
---|
DelegateXmlOutputFactory(XMLOutputFactory staxXmlOutputFactory) |
Modifier and Type | Method and Description |
---|---|
XMLEventWriter |
createXMLEventWriter(OutputStream stream) |
XMLEventWriter |
createXMLEventWriter(OutputStream stream,
String encoding) |
XMLEventWriter |
createXMLEventWriter(Result result) |
XMLEventWriter |
createXMLEventWriter(Writer stream) |
XMLStreamWriter |
createXMLStreamWriter(OutputStream stream) |
XMLStreamWriter |
createXMLStreamWriter(OutputStream stream,
String encoding) |
XMLStreamWriter |
createXMLStreamWriter(Result result) |
XMLStreamWriter |
createXMLStreamWriter(Writer stream) |
Object |
getProperty(String name) |
boolean |
isPropertySupported(String name) |
void |
setProperty(String name,
Object value) |
newFactory, newFactory, newInstance, newInstance
public DelegateXmlOutputFactory(XMLOutputFactory staxXmlOutputFactory)
public XMLStreamWriter createXMLStreamWriter(Writer stream) throws XMLStreamException
createXMLStreamWriter
in interface XmlOutputFactory
createXMLStreamWriter
in class XMLOutputFactory
XMLStreamException
public XMLStreamWriter createXMLStreamWriter(OutputStream stream) throws XMLStreamException
createXMLStreamWriter
in interface XmlOutputFactory
createXMLStreamWriter
in class XMLOutputFactory
XMLStreamException
public XMLStreamWriter createXMLStreamWriter(OutputStream stream, String encoding) throws XMLStreamException
createXMLStreamWriter
in interface XmlOutputFactory
createXMLStreamWriter
in class XMLOutputFactory
XMLStreamException
public XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException
createXMLStreamWriter
in interface XmlOutputFactory
createXMLStreamWriter
in class XMLOutputFactory
XMLStreamException
public XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException
createXMLEventWriter
in interface XmlOutputFactory
createXMLEventWriter
in class XMLOutputFactory
XMLStreamException
public XMLEventWriter createXMLEventWriter(OutputStream stream) throws XMLStreamException
createXMLEventWriter
in interface XmlOutputFactory
createXMLEventWriter
in class XMLOutputFactory
XMLStreamException
public XMLEventWriter createXMLEventWriter(OutputStream stream, String encoding) throws XMLStreamException
createXMLEventWriter
in interface XmlOutputFactory
createXMLEventWriter
in class XMLOutputFactory
XMLStreamException
public XMLEventWriter createXMLEventWriter(Writer stream) throws XMLStreamException
createXMLEventWriter
in interface XmlOutputFactory
createXMLEventWriter
in class XMLOutputFactory
XMLStreamException
public void setProperty(String name, Object value) throws IllegalArgumentException
setProperty
in interface XmlOutputFactory
setProperty
in class XMLOutputFactory
IllegalArgumentException
public Object getProperty(String name) throws IllegalArgumentException
getProperty
in interface XmlOutputFactory
getProperty
in class XMLOutputFactory
IllegalArgumentException
public boolean isPropertySupported(String name)
isPropertySupported
in interface XmlOutputFactory
isPropertySupported
in class XMLOutputFactory
Copyright © 2003–2021 Atlassian. All rights reserved.