Class StAXOutputFactory
- java.lang.Object
-
- javax.xml.stream.XMLOutputFactory
-
- com.sun.xml.fastinfoset.stax.factory.StAXOutputFactory
-
public class StAXOutputFactory extends XMLOutputFactory
-
-
Field Summary
-
Fields inherited from class javax.xml.stream.XMLOutputFactory
IS_REPAIRING_NAMESPACES
-
-
Constructor Summary
Constructors Constructor Description StAXOutputFactory()
Creates a new instance of StAXOutputFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLEventWriter
createXMLEventWriter(OutputStream outputStream)
XMLEventWriter
createXMLEventWriter(OutputStream outputStream, String encoding)
XMLEventWriter
createXMLEventWriter(Writer writer)
XMLEventWriter
createXMLEventWriter(Result result)
XMLStreamWriter
createXMLStreamWriter(OutputStream outputStream)
XMLStreamWriter
createXMLStreamWriter(OutputStream outputStream, String encoding)
XMLStreamWriter
createXMLStreamWriter(Writer writer)
this is assumed that user wants to write the file in xml formatXMLStreamWriter
createXMLStreamWriter(Result result)
Object
getProperty(String name)
boolean
isPropertySupported(String name)
void
setProperty(String name, Object value)
-
Methods inherited from class javax.xml.stream.XMLOutputFactory
newDefaultFactory, newFactory, newFactory, newInstance, newInstance
-
-
-
-
Method Detail
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException
- Specified by:
createXMLEventWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(Writer writer) throws XMLStreamException
- Specified by:
createXMLEventWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream outputStream) throws XMLStreamException
- Specified by:
createXMLEventWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream outputStream, String encoding) throws XMLStreamException
- Specified by:
createXMLEventWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException
- Specified by:
createXMLStreamWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(Writer writer) throws XMLStreamException
this is assumed that user wants to write the file in xml format- Specified by:
createXMLStreamWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream outputStream) throws XMLStreamException
- Specified by:
createXMLStreamWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream outputStream, String encoding) throws XMLStreamException
- Specified by:
createXMLStreamWriter
in classXMLOutputFactory
- Throws:
XMLStreamException
-
getProperty
public Object getProperty(String name) throws IllegalArgumentException
- Specified by:
getProperty
in classXMLOutputFactory
- Throws:
IllegalArgumentException
-
isPropertySupported
public boolean isPropertySupported(String name)
- Specified by:
isPropertySupported
in classXMLOutputFactory
-
setProperty
public void setProperty(String name, Object value) throws IllegalArgumentException
- Specified by:
setProperty
in classXMLOutputFactory
- Throws:
IllegalArgumentException
-
-