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_AUTOMATIC_EMPTY_ELEMENTS, P_AUTOMATIC_NS_PREFIX, P_TEXT_ESCAPERCFG_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() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureForRobustness()
Method call to make writer be as robust as possible, that is, to
make it both check AND fix problems if it can.
|
void |
configureForSpeed()
Method call to make writer optimize its operation for speed.
|
void |
configureForXmlConformance()
Method call to make writer be as strict with output as possible,
ie maximize validation it does to try to catch any well-formedness
or validity problems.
|
javax.xml.stream.XMLEventWriter |
createXMLEventWriter(java.io.OutputStream out) |
javax.xml.stream.XMLEventWriter |
createXMLEventWriter(java.io.OutputStream out,
java.lang.String enc) |
javax.xml.stream.XMLEventWriter |
createXMLEventWriter(javax.xml.transform.Result result) |
javax.xml.stream.XMLEventWriter |
createXMLEventWriter(java.io.Writer w) |
javax.xml.stream.XMLEventWriter |
createXMLEventWriter(java.io.Writer w,
java.lang.String enc) |
javax.xml.stream.XMLEventWriter |
createXMLEventWriter(javax.xml.stream.XMLStreamWriter sw) |
javax.xml.stream.XMLStreamWriter |
createXMLStreamWriter(java.io.OutputStream out) |
javax.xml.stream.XMLStreamWriter |
createXMLStreamWriter(java.io.OutputStream out,
java.lang.String enc) |
javax.xml.stream.XMLStreamWriter |
createXMLStreamWriter(javax.xml.transform.Result result) |
javax.xml.stream.XMLStreamWriter |
createXMLStreamWriter(java.io.Writer w) |
XMLStreamWriter2 |
createXMLStreamWriter(java.io.Writer w,
java.lang.String enc) |
WriterConfig |
getConfig() |
java.lang.Object |
getProperty(java.lang.String name) |
boolean |
isPropertySupported(java.lang.String name) |
void |
setProperty(java.lang.String name,
java.lang.Object value) |
protected final WriterConfig mConfig
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream out)
throws javax.xml.stream.XMLStreamException
createXMLEventWriter in class javax.xml.stream.XMLOutputFactoryjavax.xml.stream.XMLStreamExceptionpublic javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream out,
java.lang.String enc)
throws javax.xml.stream.XMLStreamException
createXMLEventWriter in class javax.xml.stream.XMLOutputFactoryjavax.xml.stream.XMLStreamExceptionpublic javax.xml.stream.XMLEventWriter createXMLEventWriter(javax.xml.transform.Result result)
throws javax.xml.stream.XMLStreamException
createXMLEventWriter in class javax.xml.stream.XMLOutputFactoryjavax.xml.stream.XMLStreamExceptionpublic javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.Writer w)
throws javax.xml.stream.XMLStreamException
createXMLEventWriter in class javax.xml.stream.XMLOutputFactoryjavax.xml.stream.XMLStreamExceptionpublic javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream out)
throws javax.xml.stream.XMLStreamException
createXMLStreamWriter in class javax.xml.stream.XMLOutputFactoryjavax.xml.stream.XMLStreamExceptionpublic javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream out,
java.lang.String enc)
throws javax.xml.stream.XMLStreamException
createXMLStreamWriter in class javax.xml.stream.XMLOutputFactoryjavax.xml.stream.XMLStreamExceptionpublic javax.xml.stream.XMLStreamWriter createXMLStreamWriter(javax.xml.transform.Result result)
throws javax.xml.stream.XMLStreamException
createXMLStreamWriter in class javax.xml.stream.XMLOutputFactoryjavax.xml.stream.XMLStreamExceptionpublic javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.Writer w)
throws javax.xml.stream.XMLStreamException
createXMLStreamWriter in class javax.xml.stream.XMLOutputFactoryjavax.xml.stream.XMLStreamExceptionpublic java.lang.Object getProperty(java.lang.String name)
getProperty in class javax.xml.stream.XMLOutputFactorypublic boolean isPropertySupported(java.lang.String name)
isPropertySupported in class javax.xml.stream.XMLOutputFactorypublic void setProperty(java.lang.String name,
java.lang.Object value)
setProperty in class javax.xml.stream.XMLOutputFactorypublic javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.Writer w,
java.lang.String enc)
throws javax.xml.stream.XMLStreamException
createXMLEventWriter in class XMLOutputFactory2javax.xml.stream.XMLStreamExceptionpublic javax.xml.stream.XMLEventWriter createXMLEventWriter(javax.xml.stream.XMLStreamWriter sw)
throws javax.xml.stream.XMLStreamException
createXMLEventWriter in class XMLOutputFactory2javax.xml.stream.XMLStreamExceptionpublic XMLStreamWriter2 createXMLStreamWriter(java.io.Writer w, java.lang.String enc) throws javax.xml.stream.XMLStreamException
createXMLStreamWriter in class XMLOutputFactory2javax.xml.stream.XMLStreamExceptionpublic 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()