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_ESCAPER
CFG_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.XMLOutputFactory
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.OutputStream out, java.lang.String enc) throws javax.xml.stream.XMLStreamException
createXMLEventWriter
in class javax.xml.stream.XMLOutputFactory
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventWriter createXMLEventWriter(javax.xml.transform.Result result) throws javax.xml.stream.XMLStreamException
createXMLEventWriter
in class javax.xml.stream.XMLOutputFactory
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.Writer w) throws javax.xml.stream.XMLStreamException
createXMLEventWriter
in class javax.xml.stream.XMLOutputFactory
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream out) throws javax.xml.stream.XMLStreamException
createXMLStreamWriter
in class javax.xml.stream.XMLOutputFactory
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.OutputStream out, java.lang.String enc) throws javax.xml.stream.XMLStreamException
createXMLStreamWriter
in class javax.xml.stream.XMLOutputFactory
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(javax.xml.transform.Result result) throws javax.xml.stream.XMLStreamException
createXMLStreamWriter
in class javax.xml.stream.XMLOutputFactory
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.Writer w) throws javax.xml.stream.XMLStreamException
createXMLStreamWriter
in class javax.xml.stream.XMLOutputFactory
javax.xml.stream.XMLStreamException
public java.lang.Object getProperty(java.lang.String name)
getProperty
in class javax.xml.stream.XMLOutputFactory
public boolean isPropertySupported(java.lang.String name)
isPropertySupported
in class javax.xml.stream.XMLOutputFactory
public void setProperty(java.lang.String name, java.lang.Object value)
setProperty
in class javax.xml.stream.XMLOutputFactory
public javax.xml.stream.XMLEventWriter createXMLEventWriter(java.io.Writer w, java.lang.String enc) throws javax.xml.stream.XMLStreamException
createXMLEventWriter
in class org.codehaus.stax2.XMLOutputFactory2
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventWriter createXMLEventWriter(javax.xml.stream.XMLStreamWriter sw) throws javax.xml.stream.XMLStreamException
createXMLEventWriter
in class org.codehaus.stax2.XMLOutputFactory2
javax.xml.stream.XMLStreamException
public org.codehaus.stax2.XMLStreamWriter2 createXMLStreamWriter(java.io.Writer w, java.lang.String enc) throws javax.xml.stream.XMLStreamException
createXMLStreamWriter
in class org.codehaus.stax2.XMLOutputFactory2
javax.xml.stream.XMLStreamException
public void configureForXmlConformance()
configureForXmlConformance
in class org.codehaus.stax2.XMLOutputFactory2
public void configureForRobustness()
configureForRobustness
in class org.codehaus.stax2.XMLOutputFactory2
public void configureForSpeed()
configureForSpeed
in class org.codehaus.stax2.XMLOutputFactory2
public 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.XMLStreamException
protected 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