|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.xml.stream.XMLOutputFactory
Defines an abstract implementation of a factory for getting XMLEventWriters and XMLStreamWriters. The following table defines the standard properties that must be supported by each implementation of this specification.
| Configuration parameters | ||||
|---|---|---|---|---|
| Property Name | Behavior | Return type | Default Value | Required |
| javax.xml.stream.isPrefixDefaulting | defaults prefixes on the output side | Boolean | False | Yes |
XMLInputFactory,
XMLEventWriter,
XMLStreamWriter| Field Summary | |
static java.lang.String |
IS_PREFIX_DEFAULTING
Property used to set prefix defaulting on the output side |
| Constructor Summary | |
protected |
XMLOutputFactory()
|
| Method Summary | |
abstract XMLEventWriter |
createXMLEventWriter(java.io.OutputStream stream)
Create a new XMLEventWriter that writes to a stream |
abstract XMLEventWriter |
createXMLEventWriter(java.io.OutputStream stream,
java.lang.String encoding)
Create a new XMLEventWriter that writes to a stream |
abstract XMLEventWriter |
createXMLEventWriter(java.io.Writer stream)
Create a new XMLEventWriter that writes to a writer |
abstract XMLStreamWriter |
createXMLStreamWriter(java.io.OutputStream stream)
Create a new XMLStreamWriter that writes to a stream |
abstract XMLStreamWriter |
createXMLStreamWriter(java.io.OutputStream stream,
java.lang.String encoding)
Create a new XMLStreamWriter that writes to a stream |
abstract XMLStreamWriter |
createXMLStreamWriter(java.io.Writer stream)
Create a new XMLStreamWriter that writes to a writer |
abstract java.lang.Object |
getProperty(java.lang.String name)
Get a feature/property on the underlying implementation |
abstract boolean |
isPrefixDefaulting()
Indicates if this factory is configured to create streams that default namespace prefixes. |
abstract boolean |
isPropertySupported(java.lang.String name)
Query the set of properties that this factory supports. |
static XMLOutputFactory |
newInstance()
Create a new instance of the factory. |
static XMLInputFactory |
newInstance(java.lang.String factoryId,
java.lang.ClassLoader classLoader)
Create a new instance of the factory |
abstract void |
setPrefixDefaulting(boolean value)
Specifies that the writer default namespace prefix declarations. |
abstract void |
setProperty(java.lang.String name,
java.lang.Object value)
Allows the user to set specific features/properties on the underlying implementation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String IS_PREFIX_DEFAULTING
| Constructor Detail |
protected XMLOutputFactory()
| Method Detail |
public static XMLOutputFactory newInstance()
throws FactoryConfigurationError
FactoryConfigurationError - if an instance of this factory cannot be loaded
public static XMLInputFactory newInstance(java.lang.String factoryId,
java.lang.ClassLoader classLoader)
throws FactoryConfigurationError
factoryId - Name of the factory to find, same as
a property nameclassLoader - classLoader to use
FactoryConfigurationError - if an instance of this factory cannot be loaded
public abstract XMLStreamWriter createXMLStreamWriter(java.io.Writer stream)
throws XMLStreamException
stream - the writer to write to
XMLStreamException
public abstract XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream)
throws XMLStreamException
stream - the stream to write to
XMLStreamException
public abstract XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream,
java.lang.String encoding)
throws XMLStreamException
stream - the stream to write toencoding - the encoding to use
XMLStreamException
public abstract XMLEventWriter createXMLEventWriter(java.io.OutputStream stream)
throws XMLStreamException
stream - the stream to write to
XMLStreamException
public abstract XMLEventWriter createXMLEventWriter(java.io.OutputStream stream,
java.lang.String encoding)
throws XMLStreamException
stream - the stream to write toencoding - the encoding to use
XMLStreamException
public abstract XMLEventWriter createXMLEventWriter(java.io.Writer stream)
throws XMLStreamException
stream - the stream to write to
XMLStreamException
public abstract void setProperty(java.lang.String name,
java.lang.Object value)
throws java.lang.IllegalArgumentException
name - The name of the propertyvalue - The value of the property
java.lang.IllegalArgumentException - if the property is not supported
public abstract java.lang.Object getProperty(java.lang.String name)
throws java.lang.IllegalArgumentException
name - The name of the property
java.lang.IllegalArgumentException - if the property is not supportedpublic abstract boolean isPrefixDefaulting()
public abstract boolean isPropertySupported(java.lang.String name)
name - The name of the property (may not be null)
public abstract void setPrefixDefaulting(boolean value)
value - the value to set prefix defaulting to (default is false)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||