javanet.staxutils
Class BaseXMLOutputFactory
java.lang.Object
javax.xml.stream.XMLOutputFactory
javanet.staxutils.BaseXMLOutputFactory
- Direct Known Subclasses:
- OutputFactory
public abstract class BaseXMLOutputFactory
- extends XMLOutputFactory
Base XMLOutputFactory
that provides common event functionality.
- Version:
- $Revision: 1.2 $
- Author:
- Christian Niles
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseXMLOutputFactory
public BaseXMLOutputFactory()
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(java.io.OutputStream stream,
java.lang.String encoding)
throws XMLStreamException
- Specified by:
createXMLEventWriter
in class XMLOutputFactory
- Throws:
XMLStreamException
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(java.io.OutputStream stream)
throws XMLStreamException
- Specified by:
createXMLEventWriter
in class XMLOutputFactory
- Throws:
XMLStreamException
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream,
java.lang.String encoding)
throws XMLStreamException
- Specified by:
createXMLStreamWriter
in class XMLOutputFactory
- Throws:
XMLStreamException
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream)
throws XMLStreamException
- Specified by:
createXMLStreamWriter
in class XMLOutputFactory
- Throws:
XMLStreamException
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(javax.xml.transform.Result result)
throws XMLStreamException
- Specified by:
createXMLEventWriter
in class XMLOutputFactory
- Throws:
XMLStreamException
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(XMLStreamWriter writer)
- Creates an
XMLEventWriter
that writes to the provided
XMLStreamWriter
.
- Parameters:
writer
- The destination stream.
- Returns:
- An
XMLEventWriter
that writes to the provided
XMLStreamWriter
.
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(java.io.Writer stream)
throws XMLStreamException
- Specified by:
createXMLEventWriter
in class XMLOutputFactory
- Throws:
XMLStreamException
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(javax.xml.transform.Result result)
throws XMLStreamException
- Specified by:
createXMLStreamWriter
in class XMLOutputFactory
- Throws:
XMLStreamException
getProperty
public java.lang.Object getProperty(java.lang.String name)
throws java.lang.IllegalArgumentException
- Specified by:
getProperty
in class XMLOutputFactory
- Throws:
java.lang.IllegalArgumentException
isPropertySupported
public boolean isPropertySupported(java.lang.String name)
- Specified by:
isPropertySupported
in class XMLOutputFactory
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
throws java.lang.IllegalArgumentException
- Specified by:
setProperty
in class XMLOutputFactory
- Throws:
java.lang.IllegalArgumentException