public class WstxOutputFactory extends XMLOutputFactory2 implements OutputConfigFlags
XMLOutputFactory for Wstx.
TODO:
| Modifier and Type | Field and Description |
|---|---|
protected WriterConfig |
mConfig |
P_ATTR_VALUE_ESCAPER, P_AUTO_CLOSE_OUTPUT, P_AUTOMATIC_EMPTY_ELEMENTS, P_AUTOMATIC_NS_PREFIX, P_TEXT_ESCAPERIS_REPAIRING_NAMESPACESCFG_ADD_SPACE_AFTER_EMPTY_ELEM, CFG_AUTO_CLOSE_OUTPUT, CFG_AUTOMATIC_EMPTY_ELEMENTS, CFG_AUTOMATIC_END_ELEMENTS, CFG_AUTOMATIC_NS, CFG_COPY_DEFAULT_ATTRS, CFG_ENABLE_NS, CFG_ESCAPE_CR, CFG_FIX_CONTENT, CFG_OUTPUT_CDATA_AS_TEXT, CFG_VALIDATE_ATTR, CFG_VALIDATE_CONTENT, CFG_VALIDATE_NAMES, CFG_VALIDATE_STRUCTUREXSP_IMPLEMENTATION_NAME, XSP_IMPLEMENTATION_VERSION, XSP_NAMESPACE_AWARE, XSP_PROBLEM_REPORTER, XSP_SUPPORT_XMLID, XSP_SUPPORTS_XML11, XSP_V_XMLID_FULL, XSP_V_XMLID_NONE, XSP_V_XMLID_TYPING| Constructor and Description |
|---|
WstxOutputFactory() |
newFactory, newFactory, newInstance, newInstanceprotected final WriterConfig mConfig
public XMLEventWriter createXMLEventWriter(OutputStream out) throws XMLStreamException
createXMLEventWriter in class XMLOutputFactoryXMLStreamExceptionpublic XMLEventWriter createXMLEventWriter(OutputStream out, String enc) throws XMLStreamException
createXMLEventWriter in class XMLOutputFactoryXMLStreamExceptionpublic XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException
createXMLEventWriter in class XMLOutputFactoryXMLStreamExceptionpublic XMLEventWriter createXMLEventWriter(Writer w) throws XMLStreamException
createXMLEventWriter in class XMLOutputFactoryXMLStreamExceptionpublic XMLStreamWriter createXMLStreamWriter(OutputStream out) throws XMLStreamException
createXMLStreamWriter in class XMLOutputFactoryXMLStreamExceptionpublic XMLStreamWriter createXMLStreamWriter(OutputStream out, String enc) throws XMLStreamException
createXMLStreamWriter in class XMLOutputFactoryXMLStreamExceptionpublic XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException
createXMLStreamWriter in class XMLOutputFactoryXMLStreamExceptionpublic XMLStreamWriter createXMLStreamWriter(Writer w) throws XMLStreamException
createXMLStreamWriter in class XMLOutputFactoryXMLStreamExceptionpublic Object getProperty(String name)
getProperty in class XMLOutputFactorypublic boolean isPropertySupported(String name)
isPropertySupported in class XMLOutputFactorypublic void setProperty(String name, Object value)
setProperty in class XMLOutputFactorypublic XMLEventWriter createXMLEventWriter(Writer w, String enc) throws XMLStreamException
createXMLEventWriter in class XMLOutputFactory2XMLStreamExceptionpublic XMLEventWriter createXMLEventWriter(XMLStreamWriter sw) throws XMLStreamException
createXMLEventWriter in class XMLOutputFactory2XMLStreamExceptionpublic XMLStreamWriter2 createXMLStreamWriter(Writer w, String enc) throws XMLStreamException
createXMLStreamWriter in class XMLOutputFactory2XMLStreamExceptionpublic void configureForXmlConformance()
XMLOutputFactory2This configuration does add some overhead to output process, since it enables content checks that are overhead.
None of currently defined standard properties should be affected, but implementations are likely to enable/disable custom properties related to validation.
configureForXmlConformance in class XMLOutputFactory2public void configureForRobustness()
XMLOutputFactory2
Like XMLOutputFactory2.configureForXmlConformance(), this configuration adds
some overhead to output process.
None of currently defined standard properties should be affected, but implementations are likely to enable/disable custom properties related to validation.
configureForRobustness in class XMLOutputFactory2public void configureForSpeed()
XMLOutputFactory2XMLOutputFactory2.configureForXmlConformance()
(and XMLOutputFactory2.configureForRobustness()) enables.
None of currently defined standard properties should be affected.
configureForSpeed in class XMLOutputFactory2public WriterConfig getConfig()
protected XMLStreamWriter2 createSW(String enc, WriterConfig cfg, XmlWriter xw)
createSW(OutputStream, Writer, String, boolean) after all of the nessesary configuration
logic is complete.