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.XMLOutputFactorycreateXMLStreamWriter in class javax.xml.stream.XMLOutputFactorystream - the writer to write tojavax.xml.stream.XMLStreamExceptionpublic javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLOutputFactorycreateXMLStreamWriter in class javax.xml.stream.XMLOutputFactorystream - the stream to write tojavax.xml.stream.XMLStreamExceptionpublic javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream stream,
java.lang.String encoding)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLOutputFactorycreateXMLStreamWriter in class javax.xml.stream.XMLOutputFactorystream - the stream to write toencoding - the encoding to usejavax.xml.stream.XMLStreamExceptionpublic javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream stream)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLOutputFactorycreateXMLEventWriter in class javax.xml.stream.XMLOutputFactorystream - the stream to write tojavax.xml.stream.XMLStreamExceptionpublic javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.Writer stream)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLOutputFactorycreateXMLEventWriter in class javax.xml.stream.XMLOutputFactorystream - the stream to write tojavax.xml.stream.XMLStreamExceptionpublic javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream stream,
java.lang.String encoding)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLOutputFactorycreateXMLEventWriter in class javax.xml.stream.XMLOutputFactorystream - the stream to write toencoding - the encoding to usejavax.xml.stream.XMLStreamExceptionpublic void setProperty(java.lang.String name,
java.lang.Object value)
javax.xml.stream.XMLOutputFactorysetProperty in class javax.xml.stream.XMLOutputFactoryname - The name of the propertyvalue - The value of the propertypublic java.lang.Object getProperty(java.lang.String name)
javax.xml.stream.XMLOutputFactorygetProperty in class javax.xml.stream.XMLOutputFactoryname - The name of the propertypublic boolean isPrefixDefaulting()
public void setPrefixDefaulting(boolean value)
public boolean isPropertySupported(java.lang.String name)
javax.xml.stream.XMLOutputFactoryisPropertySupported in class javax.xml.stream.XMLOutputFactoryname - 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.XMLOutputFactorycreateXMLStreamWriter in class javax.xml.stream.XMLOutputFactoryresult - the result to write tojavax.xml.stream.XMLStreamExceptionpublic javax.xml.stream.XMLEventWriter createXMLEventWriter(javax.xml.transform.Result result)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLOutputFactorycreateXMLEventWriter in class javax.xml.stream.XMLOutputFactoryresult - the result to write tojavax.xml.stream.XMLStreamException