public class StAXOutputFactory extends XMLOutputFactory
IS_REPAIRING_NAMESPACES
Constructor and Description |
---|
StAXOutputFactory()
Creates a new instance of StAXOutputFactory
|
Modifier and Type | Method and Description |
---|---|
XMLEventWriter |
createXMLEventWriter(OutputStream outputStream) |
XMLEventWriter |
createXMLEventWriter(OutputStream outputStream,
String encoding) |
XMLEventWriter |
createXMLEventWriter(Result result) |
XMLEventWriter |
createXMLEventWriter(Writer writer) |
XMLStreamWriter |
createXMLStreamWriter(OutputStream outputStream) |
XMLStreamWriter |
createXMLStreamWriter(OutputStream outputStream,
String encoding) |
XMLStreamWriter |
createXMLStreamWriter(Result result) |
XMLStreamWriter |
createXMLStreamWriter(Writer writer)
this is assumed that user wants to write the file in xml format
|
Object |
getProperty(String name) |
boolean |
isPropertySupported(String name) |
void |
setProperty(String name,
Object value) |
newFactory, newFactory, newInstance, newInstance
public StAXOutputFactory()
public XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException
createXMLEventWriter
in class XMLOutputFactory
XMLStreamException
public XMLEventWriter createXMLEventWriter(Writer writer) throws XMLStreamException
createXMLEventWriter
in class XMLOutputFactory
XMLStreamException
public XMLEventWriter createXMLEventWriter(OutputStream outputStream) throws XMLStreamException
createXMLEventWriter
in class XMLOutputFactory
XMLStreamException
public XMLEventWriter createXMLEventWriter(OutputStream outputStream, String encoding) throws XMLStreamException
createXMLEventWriter
in class XMLOutputFactory
XMLStreamException
public XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException
createXMLStreamWriter
in class XMLOutputFactory
XMLStreamException
public XMLStreamWriter createXMLStreamWriter(Writer writer) throws XMLStreamException
createXMLStreamWriter
in class XMLOutputFactory
XMLStreamException
public XMLStreamWriter createXMLStreamWriter(OutputStream outputStream) throws XMLStreamException
createXMLStreamWriter
in class XMLOutputFactory
XMLStreamException
public XMLStreamWriter createXMLStreamWriter(OutputStream outputStream, String encoding) throws XMLStreamException
createXMLStreamWriter
in class XMLOutputFactory
XMLStreamException
public Object getProperty(String name) throws IllegalArgumentException
getProperty
in class XMLOutputFactory
IllegalArgumentException
public boolean isPropertySupported(String name)
isPropertySupported
in class XMLOutputFactory
public void setProperty(String name, Object value) throws IllegalArgumentException
setProperty
in class XMLOutputFactory
IllegalArgumentException
Copyright © 2024 Oracle Corpration. All rights reserved.