Package javanet.staxutils
Class BaseXMLOutputFactory
java.lang.Object
javax.xml.stream.XMLOutputFactory
javanet.staxutils.BaseXMLOutputFactory
- Direct Known Subclasses:
OutputFactory
Base
XMLOutputFactory that provides common event functionality.- Version:
- $Revision: 1.2 $
- Author:
- Christian Niles
-
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(XMLStreamWriter writer) Creates anXMLEventWriterthat writes to the providedXMLStreamWriter.createXMLEventWriter(Result result) createXMLStreamWriter(OutputStream stream) createXMLStreamWriter(OutputStream stream, String encoding) createXMLStreamWriter(Result result) getProperty(String name) booleanisPropertySupported(String name) voidsetProperty(String name, Object value) Methods inherited from class javax.xml.stream.XMLOutputFactory
createXMLStreamWriter, newDefaultFactory, newFactory, newFactory, newInstance, newInstance
-
Constructor Details
-
BaseXMLOutputFactory
public BaseXMLOutputFactory()
-
-
Method Details
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream stream, String encoding) throws XMLStreamException - Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream stream, String encoding) throws XMLStreamException - Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
Creates anXMLEventWriterthat writes to the providedXMLStreamWriter.- Parameters:
writer- The destination stream.- Returns:
- An
XMLEventWriterthat writes to the providedXMLStreamWriter.
-
createXMLEventWriter
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
getProperty
- Specified by:
getPropertyin classXMLOutputFactory- Throws:
IllegalArgumentException
-
isPropertySupported
- Specified by:
isPropertySupportedin classXMLOutputFactory
-
setProperty
- Specified by:
setPropertyin classXMLOutputFactory- Throws:
IllegalArgumentException
-