public class WrappingXMLOutputFactory extends XMLOutputFactoryWrapper
XMLOutputFactory
wrapper that wraps all XMLEventWriter
and XMLStreamWriter
instances created from it.IS_REPAIRING_NAMESPACES
Constructor and Description |
---|
WrappingXMLOutputFactory(XMLOutputFactory parent)
Constructor.
|
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) |
protected XMLEventWriter |
wrap(XMLEventWriter writer)
Wrap a writer created from this factory.
|
protected XMLStreamWriter |
wrap(XMLStreamWriter writer)
Wrap a writer created from this factory.
|
getProperty, isPropertySupported, setProperty
newFactory, newFactory, newInstance, newInstance
public WrappingXMLOutputFactory(XMLOutputFactory parent)
parent
- the parent factoryprotected XMLEventWriter wrap(XMLEventWriter writer)
XMLEventWriter
instances created from the factory. The default
implementation simply returns the unwrapped writer.writer
- the writer to wrapprotected XMLStreamWriter wrap(XMLStreamWriter writer)
XMLStreamWriter
instances created from the factory. The default
implementation simply returns the unwrapped writer.writer
- the writer to wrappublic XMLEventWriter createXMLEventWriter(OutputStream stream, String encoding) throws XMLStreamException
createXMLEventWriter
in class XMLOutputFactoryWrapper
XMLStreamException
public XMLEventWriter createXMLEventWriter(OutputStream stream) throws XMLStreamException
createXMLEventWriter
in class XMLOutputFactoryWrapper
XMLStreamException
public XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException
createXMLEventWriter
in class XMLOutputFactoryWrapper
XMLStreamException
public XMLEventWriter createXMLEventWriter(Writer stream) throws XMLStreamException
createXMLEventWriter
in class XMLOutputFactoryWrapper
XMLStreamException
public XMLStreamWriter createXMLStreamWriter(OutputStream stream, String encoding) throws XMLStreamException
createXMLStreamWriter
in class XMLOutputFactoryWrapper
XMLStreamException
public XMLStreamWriter createXMLStreamWriter(OutputStream stream) throws XMLStreamException
createXMLStreamWriter
in class XMLOutputFactoryWrapper
XMLStreamException
public XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException
createXMLStreamWriter
in class XMLOutputFactoryWrapper
XMLStreamException
public XMLStreamWriter createXMLStreamWriter(Writer stream) throws XMLStreamException
createXMLStreamWriter
in class XMLOutputFactoryWrapper
XMLStreamException
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.