Class WrappingXMLOutputFactory
- java.lang.Object
-
- javax.xml.stream.XMLOutputFactory
-
- org.apache.axiom.util.stax.wrapper.XMLOutputFactoryWrapper
-
- org.apache.axiom.util.stax.wrapper.WrappingXMLOutputFactory
-
public class WrappingXMLOutputFactory extends XMLOutputFactoryWrapper
XMLOutputFactorywrapper that wraps allXMLEventWriterandXMLStreamWriterinstances created from it.
-
-
Field Summary
-
Fields inherited from class javax.xml.stream.XMLOutputFactory
IS_REPAIRING_NAMESPACES
-
-
Constructor Summary
Constructors Constructor Description WrappingXMLOutputFactory(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)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, setProperty
-
Methods inherited from class javax.xml.stream.XMLOutputFactory
newDefaultFactory, newFactory, newFactory, newInstance, newInstance
-
-
-
-
Constructor Detail
-
WrappingXMLOutputFactory
public WrappingXMLOutputFactory(XMLOutputFactory parent)
Constructor.- Parameters:
parent- the parent factory
-
-
Method Detail
-
wrap
protected XMLEventWriter wrap(XMLEventWriter writer)
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
protected XMLStreamWriter wrap(XMLStreamWriter writer)
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
public XMLEventWriter createXMLEventWriter(OutputStream stream) throws XMLStreamException
- Overrides:
createXMLEventWriterin classXMLOutputFactoryWrapper- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException
- Overrides:
createXMLEventWriterin classXMLOutputFactoryWrapper- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(Writer stream) throws XMLStreamException
- Overrides:
createXMLEventWriterin classXMLOutputFactoryWrapper- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream stream, String encoding) throws XMLStreamException
- Overrides:
createXMLStreamWriterin classXMLOutputFactoryWrapper- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream stream) throws XMLStreamException
- Overrides:
createXMLStreamWriterin classXMLOutputFactoryWrapper- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException
- Overrides:
createXMLStreamWriterin classXMLOutputFactoryWrapper- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(Writer stream) throws XMLStreamException
- Overrides:
createXMLStreamWriterin classXMLOutputFactoryWrapper- Throws:
XMLStreamException
-
-