public class WstxOutputFactory extends org.codehaus.stax2.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_ESCAPERCFG_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_USE_DOUBLE_QUOTES_IN_XML_DECL, CFG_VALIDATE_ATTR, CFG_VALIDATE_CONTENT, CFG_VALIDATE_NAMES, CFG_VALIDATE_STRUCTURE| Constructor and Description |
|---|
WstxOutputFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureForRobustness() |
void |
configureForSpeed() |
void |
configureForXmlConformance() |
private org.codehaus.stax2.XMLStreamWriter2 |
createSW(java.io.OutputStream out,
java.io.Writer w,
java.lang.String enc,
boolean requireAutoClose)
Bottleneck factory method used internally; needs to take care of passing
proper settings to stream writer.
|
private org.codehaus.stax2.XMLStreamWriter2 |
createSW(javax.xml.transform.Result res) |
protected org.codehaus.stax2.XMLStreamWriter2 |
createSW(java.lang.String enc,
WriterConfig cfg,
XmlWriter xw)
Called by
createSW(OutputStream, Writer, String, boolean) after all of the nessesary configuration
logic is complete. |
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) |
org.codehaus.stax2.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 org.codehaus.stax2.XMLOutputFactory2javax.xml.stream.XMLStreamExceptionpublic javax.xml.stream.XMLEventWriter createXMLEventWriter(javax.xml.stream.XMLStreamWriter sw)
throws javax.xml.stream.XMLStreamException
createXMLEventWriter in class org.codehaus.stax2.XMLOutputFactory2javax.xml.stream.XMLStreamExceptionpublic org.codehaus.stax2.XMLStreamWriter2 createXMLStreamWriter(java.io.Writer w,
java.lang.String enc)
throws javax.xml.stream.XMLStreamException
createXMLStreamWriter in class org.codehaus.stax2.XMLOutputFactory2javax.xml.stream.XMLStreamExceptionpublic void configureForXmlConformance()
configureForXmlConformance in class org.codehaus.stax2.XMLOutputFactory2public void configureForRobustness()
configureForRobustness in class org.codehaus.stax2.XMLOutputFactory2public void configureForSpeed()
configureForSpeed in class org.codehaus.stax2.XMLOutputFactory2public WriterConfig getConfig()
private org.codehaus.stax2.XMLStreamWriter2 createSW(java.io.OutputStream out,
java.io.Writer w,
java.lang.String enc,
boolean requireAutoClose)
throws javax.xml.stream.XMLStreamException
requireAutoClose - Whether this result will always require
auto-close be enabled (true); or only if application has
requested it (false)javax.xml.stream.XMLStreamExceptionprotected org.codehaus.stax2.XMLStreamWriter2 createSW(java.lang.String enc,
WriterConfig cfg,
XmlWriter xw)
createSW(OutputStream, Writer, String, boolean) after all of the nessesary configuration
logic is complete.private org.codehaus.stax2.XMLStreamWriter2 createSW(javax.xml.transform.Result res)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException