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 XMLEventWritercreateXMLEventWriter(OutputStream outputStream)XMLEventWritercreateXMLEventWriter(OutputStream outputStream, String encoding)XMLEventWritercreateXMLEventWriter(Writer writer)XMLEventWritercreateXMLEventWriter(Result result)XMLStreamWritercreateXMLStreamWriter(OutputStream outputStream)XMLStreamWritercreateXMLStreamWriter(OutputStream outputStream, String encoding)XMLStreamWritercreateXMLStreamWriter(Writer writer)this is assumed that user wants to write the file in xml formatXMLStreamWritercreateXMLStreamWriter(Result result)ObjectgetProperty(String name)booleanisPropertySupported(String name)voidsetProperty(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:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(Writer writer) throws XMLStreamException
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream outputStream) throws XMLStreamException
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLEventWriter
public XMLEventWriter createXMLEventWriter(OutputStream outputStream, String encoding) throws XMLStreamException
- Specified by:
createXMLEventWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException
- Specified by:
createXMLStreamWriterin 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:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream outputStream) throws XMLStreamException
- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
createXMLStreamWriter
public XMLStreamWriter createXMLStreamWriter(OutputStream outputStream, String encoding) throws XMLStreamException
- Specified by:
createXMLStreamWriterin classXMLOutputFactory- Throws:
XMLStreamException
-
getProperty
public Object getProperty(String name) throws IllegalArgumentException
- Specified by:
getPropertyin classXMLOutputFactory- Throws:
IllegalArgumentException
-
isPropertySupported
public boolean isPropertySupported(String name)
- Specified by:
isPropertySupportedin classXMLOutputFactory
-
setProperty
public void setProperty(String name, Object value) throws IllegalArgumentException
- Specified by:
setPropertyin classXMLOutputFactory- Throws:
IllegalArgumentException
-
-