|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.stream.XMLOutputFactory
public abstract class XMLOutputFactory
Factory for obtaining XML stream and event writers for various kinds of output sink.
Name | Description | Type | Default | Required |
---|---|---|---|---|
javax.xml.stream.isRepairingNamespaces | default namespace prefixes | Boolean | Boolean.FALSE | yes |
Field Summary | |
---|---|
static String |
IS_REPAIRING_NAMESPACES
Property used to control whether to default namespace prefixes. |
Constructor Summary | |
---|---|
protected |
XMLOutputFactory()
|
Method Summary | |
---|---|
abstract XMLEventWriter |
createXMLEventWriter(OutputStream stream)
Creates a new event writer. |
abstract XMLEventWriter |
createXMLEventWriter(OutputStream stream,
String encoding)
Creates a new event writer. |
abstract XMLEventWriter |
createXMLEventWriter(Result result)
Creates a new event writer. |
abstract XMLEventWriter |
createXMLEventWriter(Writer stream)
Creates a new event writer. |
abstract XMLStreamWriter |
createXMLStreamWriter(OutputStream stream)
Creates a new stream writer. |
abstract XMLStreamWriter |
createXMLStreamWriter(OutputStream stream,
String encoding)
Creates a new stream writer. |
abstract XMLStreamWriter |
createXMLStreamWriter(Result result)
Creates a new stream writer. |
abstract XMLStreamWriter |
createXMLStreamWriter(Writer stream)
Creates a new stream writer. |
abstract Object |
getProperty(String name)
Returns the implementation-specific property of the given name. |
abstract boolean |
isPropertySupported(String name)
Indicates whether the specified property is supported. |
static XMLOutputFactory |
newInstance()
Creates a new output factory. |
static XMLOutputFactory |
newInstance(String factoryId,
ClassLoader classLoader)
Creates a new output factory. |
abstract void |
setProperty(String name,
Object value)
Sets the implementation-specific property of the given name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String IS_REPAIRING_NAMESPACES
Constructor Detail |
---|
protected XMLOutputFactory()
Method Detail |
---|
public static XMLOutputFactory newInstance() throws FactoryConfigurationError
FactoryConfigurationError
newInstance(String,ClassLoader)
public static XMLOutputFactory newInstance(String factoryId, ClassLoader classLoader) throws FactoryConfigurationError
javax.xml.stream.XMLOutputFactory
system
property$JAVA_HOME/lib/stax.properties
fileMETA-INF/services/javax.xml.stream.XMLOutputFactory
system resource
factoryId
- the name of the factory, same as the propertyclassLoader
- the class loader to use
FactoryConfigurationError
- if an instance of this factory
could not be loadedpublic abstract XMLStreamWriter createXMLStreamWriter(Writer stream) throws XMLStreamException
XMLStreamException
public abstract XMLStreamWriter createXMLStreamWriter(OutputStream stream) throws XMLStreamException
XMLStreamException
public abstract XMLStreamWriter createXMLStreamWriter(OutputStream stream, String encoding) throws XMLStreamException
XMLStreamException
public abstract XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException
UnsupportedOperationException
- if this method is not
supported
XMLStreamException
public abstract XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException
UnsupportedOperationException
- if this method is not
supported
XMLStreamException
public abstract XMLEventWriter createXMLEventWriter(OutputStream stream) throws XMLStreamException
XMLStreamException
public abstract XMLEventWriter createXMLEventWriter(OutputStream stream, String encoding) throws XMLStreamException
XMLStreamException
public abstract XMLEventWriter createXMLEventWriter(Writer stream) throws XMLStreamException
XMLStreamException
public abstract void setProperty(String name, Object value) throws IllegalArgumentException
IllegalArgumentException
- if the property is not supportedpublic abstract Object getProperty(String name) throws IllegalArgumentException
IllegalArgumentException
- if the property is not supportedpublic abstract boolean isPropertySupported(String name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |