Class XMLOutputFactoryWrapper
- java.lang.Object
-
- javax.xml.stream.XMLOutputFactory
-
- org.apache.axiom.util.stax.wrapper.XMLOutputFactoryWrapper
-
- Direct Known Subclasses:
ImmutableXMLOutputFactory,WrappingXMLOutputFactory
public class XMLOutputFactoryWrapper extends XMLOutputFactory
Base class forXMLOutputFactorywrappers. The class provides default implementations for all methods. Each of them calls the corresponding method in the parent factory.
-
-
Field Summary
-
Fields inherited from class javax.xml.stream.XMLOutputFactory
IS_REPAIRING_NAMESPACES
-
-
Constructor Summary
Constructors Constructor Description XMLOutputFactoryWrapper(XMLOutputFactory parent)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLEventWritercreateXMLEventWriter(OutputStream stream)XMLEventWritercreateXMLEventWriter(OutputStream stream, String encoding)XMLEventWritercreateXMLEventWriter(Writer stream)XMLEventWritercreateXMLEventWriter(Result result)XMLStreamWritercreateXMLStreamWriter(OutputStream stream)XMLStreamWritercreateXMLStreamWriter(OutputStream stream, String encoding)XMLStreamWritercreateXMLStreamWriter(Writer stream)XMLStreamWritercreateXMLStreamWriter(Result result)ObjectgetProperty(String name)booleanisPropertySupported(String name)voidsetProperty(String name, Object value)-
Methods inherited from class javax.xml.stream.XMLOutputFactory
newDefaultFactory, newFactory, newFactory, newInstance, newInstance
-
-
-
-
Constructor Detail
-
XMLOutputFactoryWrapper
public XMLOutputFactoryWrapper(XMLOutputFactory parent)
Constructor.- Parameters:
parent- the parent factory
-
-
Method Detail
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream stream, String encoding) throws XMLStreamException
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream stream) throws XMLStreamException
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(Writer stream) throws XMLStreamException
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream stream, String encoding) throws XMLStreamException
- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream stream) throws XMLStreamException
- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException
- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(Writer stream) throws XMLStreamException
- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
getProperty
public Object getProperty(String name) throws IllegalArgumentException
- Specified by:
getPropertyin classXMLOutputFactory- Throws:
IllegalArgumentException
-
isPropertySupported
public boolean isPropertySupported(String name)
- Specified by:
isPropertySupportedin classXMLOutputFactory
-
setProperty
public void setProperty(String name, Object value) throws IllegalArgumentException
- Specified by:
setPropertyin classXMLOutputFactory- Throws:
IllegalArgumentException
-
-