Class WrappingXMLOutputFactory
java.lang.Object
javax.xml.stream.XMLOutputFactory
org.apache.axiom.util.stax.wrapper.XMLOutputFactoryWrapper
org.apache.axiom.util.stax.wrapper.WrappingXMLOutputFactory
XMLOutputFactory wrapper that wraps all XMLEventWriter and XMLStreamWriter
instances created from it.-
Field Summary
Fields inherited from class javax.xml.stream.XMLOutputFactory
IS_REPAIRING_NAMESPACES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateXMLEventWriter(OutputStream stream) createXMLEventWriter(OutputStream stream, String encoding) createXMLEventWriter(Writer stream) createXMLEventWriter(Result result) createXMLStreamWriter(OutputStream stream) createXMLStreamWriter(OutputStream stream, String encoding) createXMLStreamWriter(Writer stream) createXMLStreamWriter(Result result) protected XMLEventWriterwrap(XMLEventWriter writer) Wrap a writer created from this factory.protected XMLStreamWriterwrap(XMLStreamWriter writer) Wrap a writer created from this factory.Methods inherited from class org.apache.axiom.util.stax.wrapper.XMLOutputFactoryWrapper
getProperty, isPropertySupported, setPropertyMethods inherited from class javax.xml.stream.XMLOutputFactory
newDefaultFactory, newFactory, newFactory, newInstance, newInstance
-
Constructor Details
-
WrappingXMLOutputFactory
Constructor.- Parameters:
parent- the parent factory
-
-
Method Details
-
wrap
Wrap a writer created from this factory. Implementations should override this method if they wish to wrapXMLEventWriterinstances created from the factory. The default implementation simply returns the unwrapped writer.- Parameters:
writer- the writer to wrap- Returns:
- the wrapped writer
-
wrap
Wrap a writer created from this factory. Implementations should override this method if they wish to wrapXMLStreamWriterinstances created from the factory. The default implementation simply returns the unwrapped writer.- Parameters:
writer- the writer to wrap- Returns:
- the wrapped writer
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream stream, String encoding) throws XMLStreamException - Overrides:
createXMLEventWriterin classXMLOutputFactoryWrapper- Throws:
XMLStreamException
-
createXMLEventWriter
- Overrides:
createXMLEventWriterin classXMLOutputFactoryWrapper- Throws:
XMLStreamException
-
createXMLEventWriter
- Overrides:
createXMLEventWriterin classXMLOutputFactoryWrapper- Throws:
XMLStreamException
-
createXMLEventWriter
- Overrides:
createXMLEventWriterin classXMLOutputFactoryWrapper- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream stream, String encoding) throws XMLStreamException - Overrides:
createXMLStreamWriterin classXMLOutputFactoryWrapper- Throws:
XMLStreamException
-
createXMLStreamWriter
- Overrides:
createXMLStreamWriterin classXMLOutputFactoryWrapper- Throws:
XMLStreamException
-
createXMLStreamWriter
- Overrides:
createXMLStreamWriterin classXMLOutputFactoryWrapper- Throws:
XMLStreamException
-
createXMLStreamWriter
- Overrides:
createXMLStreamWriterin classXMLOutputFactoryWrapper- Throws:
XMLStreamException
-