org.apache.axiom.util.stax.wrapper
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
XMLOutputFactory wrapper that wraps all XMLEventWriter and XMLStreamWriter
instances created from it.
| Fields inherited from class javax.xml.stream.XMLOutputFactory |
IS_REPAIRING_NAMESPACES |
|
Method Summary |
javax.xml.stream.XMLEventWriter |
createXMLEventWriter(java.io.OutputStream stream)
|
javax.xml.stream.XMLEventWriter |
createXMLEventWriter(java.io.OutputStream stream,
java.lang.String encoding)
|
javax.xml.stream.XMLEventWriter |
createXMLEventWriter(javax.xml.transform.Result result)
|
javax.xml.stream.XMLEventWriter |
createXMLEventWriter(java.io.Writer stream)
|
javax.xml.stream.XMLStreamWriter |
createXMLStreamWriter(java.io.OutputStream stream)
|
javax.xml.stream.XMLStreamWriter |
createXMLStreamWriter(java.io.OutputStream stream,
java.lang.String encoding)
|
javax.xml.stream.XMLStreamWriter |
createXMLStreamWriter(javax.xml.transform.Result result)
|
javax.xml.stream.XMLStreamWriter |
createXMLStreamWriter(java.io.Writer stream)
|
protected javax.xml.stream.XMLEventWriter |
wrap(javax.xml.stream.XMLEventWriter writer)
Wrap a writer created from this factory. |
protected javax.xml.stream.XMLStreamWriter |
wrap(javax.xml.stream.XMLStreamWriter writer)
Wrap a writer created from this factory. |
| Methods inherited from class javax.xml.stream.XMLOutputFactory |
newInstance, newInstance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WrappingXMLOutputFactory
public WrappingXMLOutputFactory(javax.xml.stream.XMLOutputFactory parent)
- Constructor.
- Parameters:
parent - the parent factory
wrap
protected javax.xml.stream.XMLEventWriter wrap(javax.xml.stream.XMLEventWriter writer)
- Wrap a writer created from this factory. Implementations should override this method if they
which to wrap
XMLEventWriter instances created from the factory. The default
implementation simply returns the unwrapped writer.
- Parameters:
writer - the writer to wrap
- Returns:
- the wrapped writer
wrap
protected javax.xml.stream.XMLStreamWriter wrap(javax.xml.stream.XMLStreamWriter writer)
- Wrap a writer created from this factory. Implementations should override this method if they
which to wrap
XMLStreamWriter instances created from the factory. The default
implementation simply returns the unwrapped writer.
- Parameters:
writer - the writer to wrap
- Returns:
- the wrapped writer
createXMLEventWriter
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream stream,
java.lang.String encoding)
throws javax.xml.stream.XMLStreamException
- Overrides:
createXMLEventWriter in class XMLOutputFactoryWrapper
- Throws:
javax.xml.stream.XMLStreamException
createXMLEventWriter
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream stream)
throws javax.xml.stream.XMLStreamException
- Overrides:
createXMLEventWriter in class XMLOutputFactoryWrapper
- Throws:
javax.xml.stream.XMLStreamException
createXMLEventWriter
public javax.xml.stream.XMLEventWriter createXMLEventWriter(javax.xml.transform.Result result)
throws javax.xml.stream.XMLStreamException
- Overrides:
createXMLEventWriter in class XMLOutputFactoryWrapper
- Throws:
javax.xml.stream.XMLStreamException
createXMLEventWriter
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.Writer stream)
throws javax.xml.stream.XMLStreamException
- Overrides:
createXMLEventWriter in class XMLOutputFactoryWrapper
- Throws:
javax.xml.stream.XMLStreamException
createXMLStreamWriter
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream,
java.lang.String encoding)
throws javax.xml.stream.XMLStreamException
- Overrides:
createXMLStreamWriter in class XMLOutputFactoryWrapper
- Throws:
javax.xml.stream.XMLStreamException
createXMLStreamWriter
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream)
throws javax.xml.stream.XMLStreamException
- Overrides:
createXMLStreamWriter in class XMLOutputFactoryWrapper
- Throws:
javax.xml.stream.XMLStreamException
createXMLStreamWriter
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(javax.xml.transform.Result result)
throws javax.xml.stream.XMLStreamException
- Overrides:
createXMLStreamWriter in class XMLOutputFactoryWrapper
- Throws:
javax.xml.stream.XMLStreamException
createXMLStreamWriter
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.Writer stream)
throws javax.xml.stream.XMLStreamException
- Overrides:
createXMLStreamWriter in class XMLOutputFactoryWrapper
- Throws:
javax.xml.stream.XMLStreamException
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.