Class StAXOutputFactory
java.lang.Object
javax.xml.stream.XMLOutputFactory
com.sun.xml.fastinfoset.stax.factory.StAXOutputFactory
-
Field Summary
Fields inherited from class javax.xml.stream.XMLOutputFactory
IS_REPAIRING_NAMESPACES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateXMLEventWriter(OutputStream outputStream) createXMLEventWriter(OutputStream outputStream, String encoding) createXMLEventWriter(Writer writer) createXMLEventWriter(Result result) createXMLStreamWriter(OutputStream outputStream) createXMLStreamWriter(OutputStream outputStream, String encoding) createXMLStreamWriter(Writer writer) this is assumed that user wants to write the file in xml formatcreateXMLStreamWriter(Result result) getProperty(String name) booleanisPropertySupported(String name) voidsetProperty(String name, Object value) Methods inherited from class javax.xml.stream.XMLOutputFactory
newDefaultFactory, newFactory, newFactory, newInstance, newInstance
-
Constructor Details
-
StAXOutputFactory
public StAXOutputFactory()Creates a new instance of StAXOutputFactory
-
-
Method Details
-
createXMLEventWriter
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream outputStream, String encoding) throws XMLStreamException - Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
this is assumed that user wants to write the file in xml format- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream outputStream, String encoding) throws XMLStreamException - Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
getProperty
- Specified by:
getPropertyin classXMLOutputFactory- Throws:
IllegalArgumentException
-
isPropertySupported
- Specified by:
isPropertySupportedin classXMLOutputFactory
-
setProperty
- Specified by:
setPropertyin classXMLOutputFactory- Throws:
IllegalArgumentException
-