Package javanet.staxutils
Class BaseXMLOutputFactory
- java.lang.Object
-
- javax.xml.stream.XMLOutputFactory
-
- javanet.staxutils.BaseXMLOutputFactory
-
- Direct Known Subclasses:
OutputFactory
public abstract class BaseXMLOutputFactory extends XMLOutputFactory
BaseXMLOutputFactorythat 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 Constructor Description BaseXMLOutputFactory()
-
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(XMLStreamWriter writer)Creates anXMLEventWriterthat writes to the providedXMLStreamWriter.XMLEventWritercreateXMLEventWriter(Result result)XMLStreamWritercreateXMLStreamWriter(OutputStream stream)XMLStreamWritercreateXMLStreamWriter(OutputStream stream, String encoding)XMLStreamWritercreateXMLStreamWriter(Result result)ObjectgetProperty(String name)booleanisPropertySupported(String name)voidsetProperty(String name, Object value)-
Methods inherited from class javax.xml.stream.XMLOutputFactory
createXMLStreamWriter, newDefaultFactory, newFactory, newFactory, newInstance, newInstance
-
-
-
-
Method Detail
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream stream, String encoding) throws XMLStreamException
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream stream) throws XMLStreamException
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream stream, String encoding) throws XMLStreamException
- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream stream) throws XMLStreamException
- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(XMLStreamWriter writer)
Creates anXMLEventWriterthat writes to the providedXMLStreamWriter.- Parameters:
writer- The destination stream.- Returns:
- An
XMLEventWriterthat writes to the providedXMLStreamWriter.
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(Writer stream) throws XMLStreamException
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException
- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
getProperty
public Object getProperty(String name) throws IllegalArgumentException
- Specified by:
getPropertyin classXMLOutputFactory- Throws:
IllegalArgumentException
-
isPropertySupported
public boolean isPropertySupported(String name)
- Specified by:
isPropertySupportedin classXMLOutputFactory
-
setProperty
public void setProperty(String name, Object value) throws IllegalArgumentException
- Specified by:
setPropertyin classXMLOutputFactory- Throws:
IllegalArgumentException
-
-