public abstract class XMLOutputFactory extends java.lang.Object
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| javax.xml.stream.isRepairingNamespaces | default namespace prefixes | Boolean | Boolean.FALSE | yes |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IS_REPAIRING_NAMESPACES
Property used to control whether to default namespace prefixes.
|
| Modifier | Constructor and Description |
|---|---|
protected |
XMLOutputFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract XMLEventWriter |
createXMLEventWriter(java.io.OutputStream stream)
Creates a new event writer.
|
abstract XMLEventWriter |
createXMLEventWriter(java.io.OutputStream stream,
java.lang.String encoding)
Creates a new event writer.
|
abstract XMLEventWriter |
createXMLEventWriter(javax.xml.transform.Result result)
Creates a new event writer.
|
abstract XMLEventWriter |
createXMLEventWriter(java.io.Writer stream)
Creates a new event writer.
|
abstract XMLStreamWriter |
createXMLStreamWriter(java.io.OutputStream stream)
Creates a new stream writer.
|
abstract XMLStreamWriter |
createXMLStreamWriter(java.io.OutputStream stream,
java.lang.String encoding)
Creates a new stream writer.
|
abstract XMLStreamWriter |
createXMLStreamWriter(javax.xml.transform.Result result)
Creates a new stream writer.
|
abstract XMLStreamWriter |
createXMLStreamWriter(java.io.Writer stream)
Creates a new stream writer.
|
abstract java.lang.Object |
getProperty(java.lang.String name)
Returns the implementation-specific property of the given name.
|
abstract boolean |
isPropertySupported(java.lang.String name)
Indicates whether the specified property is supported.
|
static XMLOutputFactory |
newInstance()
Creates a new output factory.
|
static XMLOutputFactory |
newInstance(java.lang.String factoryId,
java.lang.ClassLoader classLoader)
Creates a new output factory.
|
abstract void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets the implementation-specific property of the given name.
|
public static final java.lang.String IS_REPAIRING_NAMESPACES
protected XMLOutputFactory()
public static XMLOutputFactory newInstance() throws FactoryConfigurationError
FactoryConfigurationErrornewInstance(String,ClassLoader)public static XMLOutputFactory newInstance(java.lang.String factoryId, java.lang.ClassLoader classLoader) throws FactoryConfigurationError
javax.xml.stream.XMLOutputFactory system
property$JAVA_HOME/lib/stax.properties fileMETA-INF/services/javax.xml.stream.XMLOutputFactory
system resourcefactoryId - the name of the factory, same as the propertyclassLoader - the class loader to useFactoryConfigurationError - if an instance of this factory
could not be loadedpublic abstract XMLStreamWriter createXMLStreamWriter(java.io.Writer stream) throws XMLStreamException
XMLStreamExceptionpublic abstract XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream) throws XMLStreamException
XMLStreamExceptionpublic abstract XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream, java.lang.String encoding) throws XMLStreamException
XMLStreamExceptionpublic abstract XMLStreamWriter createXMLStreamWriter(javax.xml.transform.Result result) throws XMLStreamException
java.lang.UnsupportedOperationException - if this method is not
supportedXMLStreamExceptionpublic abstract XMLEventWriter createXMLEventWriter(javax.xml.transform.Result result) throws XMLStreamException
java.lang.UnsupportedOperationException - if this method is not
supportedXMLStreamExceptionpublic abstract XMLEventWriter createXMLEventWriter(java.io.OutputStream stream) throws XMLStreamException
XMLStreamExceptionpublic abstract XMLEventWriter createXMLEventWriter(java.io.OutputStream stream, java.lang.String encoding) throws XMLStreamException
XMLStreamExceptionpublic abstract XMLEventWriter createXMLEventWriter(java.io.Writer stream) throws XMLStreamException
XMLStreamExceptionpublic abstract void setProperty(java.lang.String name, java.lang.Object value) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - if the property is not supportedpublic abstract java.lang.Object getProperty(java.lang.String name) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - if the property is not supportedpublic abstract boolean isPropertySupported(java.lang.String name)