public class XMLOutputFactoryBase
extends javax.xml.stream.XMLOutputFactory
Creates instances of the various interfaces for XML output
Constructor and Description |
---|
XMLOutputFactoryBase() |
Modifier and Type | Method and Description |
---|---|
javax.xml.stream.XMLEventWriter |
createXMLEventWriter(java.io.OutputStream stream)
Create a new XMLEventWriter that writes to a stream
|
javax.xml.stream.XMLEventWriter |
createXMLEventWriter(java.io.OutputStream stream,
java.lang.String encoding)
Create a new XMLEventWriter that writes to a stream
|
javax.xml.stream.XMLEventWriter |
createXMLEventWriter(javax.xml.transform.Result result)
Create a new XMLEventWriter that writes to a JAXP result.
|
javax.xml.stream.XMLEventWriter |
createXMLEventWriter(java.io.Writer stream)
Create a new XMLEventWriter that writes to a writer
|
javax.xml.stream.XMLStreamWriter |
createXMLStreamWriter(java.io.OutputStream stream)
Create a new XMLStreamWriter that writes to a stream
|
javax.xml.stream.XMLStreamWriter |
createXMLStreamWriter(java.io.OutputStream stream,
java.lang.String encoding)
Create a new XMLStreamWriter that writes to a stream
|
javax.xml.stream.XMLStreamWriter |
createXMLStreamWriter(javax.xml.transform.Result result)
Create a new XMLStreamWriter that writes to a JAXP result.
|
javax.xml.stream.XMLStreamWriter |
createXMLStreamWriter(java.io.Writer stream)
Create a new XMLStreamWriter that writes to a writer
|
java.lang.Object |
getProperty(java.lang.String name)
Get a feature/property on the underlying implementation
|
boolean |
isPrefixDefaulting() |
boolean |
isPropertySupported(java.lang.String name)
Query the set of properties that this factory supports.
|
void |
setPrefixDefaulting(boolean value) |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Allows the user to set specific features/properties on the underlying implementation.
|
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.Writer stream) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLOutputFactory
createXMLStreamWriter
in class javax.xml.stream.XMLOutputFactory
stream
- the writer to write tojavax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLOutputFactory
createXMLStreamWriter
in class javax.xml.stream.XMLOutputFactory
stream
- the stream to write tojavax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream, java.lang.String encoding) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLOutputFactory
createXMLStreamWriter
in class javax.xml.stream.XMLOutputFactory
stream
- the stream to write toencoding
- the encoding to usejavax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream stream) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLOutputFactory
createXMLEventWriter
in class javax.xml.stream.XMLOutputFactory
stream
- the stream to write tojavax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.Writer stream) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLOutputFactory
createXMLEventWriter
in class javax.xml.stream.XMLOutputFactory
stream
- the stream to write tojavax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream stream, java.lang.String encoding) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLOutputFactory
createXMLEventWriter
in class javax.xml.stream.XMLOutputFactory
stream
- the stream to write toencoding
- the encoding to usejavax.xml.stream.XMLStreamException
public void setProperty(java.lang.String name, java.lang.Object value)
javax.xml.stream.XMLOutputFactory
setProperty
in class javax.xml.stream.XMLOutputFactory
name
- The name of the propertyvalue
- The value of the propertypublic java.lang.Object getProperty(java.lang.String name)
javax.xml.stream.XMLOutputFactory
getProperty
in class javax.xml.stream.XMLOutputFactory
name
- The name of the propertypublic boolean isPrefixDefaulting()
public void setPrefixDefaulting(boolean value)
public boolean isPropertySupported(java.lang.String name)
javax.xml.stream.XMLOutputFactory
isPropertySupported
in class javax.xml.stream.XMLOutputFactory
name
- The name of the property (may not be null)public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(javax.xml.transform.Result result) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLOutputFactory
createXMLStreamWriter
in class javax.xml.stream.XMLOutputFactory
result
- the result to write tojavax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventWriter createXMLEventWriter(javax.xml.transform.Result result) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLOutputFactory
createXMLEventWriter
in class javax.xml.stream.XMLOutputFactory
result
- the result to write tojavax.xml.stream.XMLStreamException