XMLOutputFactory for Wstx.Todo
| Modifier and Type | Field and Description |
|---|---|
| protected final WriterConfig |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | configureForRobustness()
Implements abstract org. Method call to make writer be as robust as possible, that is, to make it both check AND fix problems if it can. |
| public void | configureForSpeed()
Implements abstract org. Method call to make writer optimize its operation for speed. |
| public void | configureForXmlConformance()
Implements abstract org. 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. |
| private XMLStreamWriter2 | createSW(OutputStream out, Writer w, String enc, boolean
Whether this result will always require
auto-close be enabled (true); or only if application has
requested it (false) requireAutoClose)Bottleneck factory method used internally; needs to take care of passing proper settings to stream writer. |
| protected XMLStreamWriter2 | createSW(String enc, WriterConfig cfg, XmlWriter xw)
Called by {code createSW(OutputStream, Writer, String, boolean)} after all of the necessary configuration logic is complete. |
| private XMLStreamWriter2 | |
| public XMLEventWriter | createXMLEventWriter(OutputStream
the stream to write to out)Implements abstract javax. Create a new XMLEventWriter that writes to a stream |
| public XMLEventWriter | createXMLEventWriter(OutputStream
the stream to write to out, String the encoding to use enc)Implements abstract javax. Create a new XMLEventWriter that writes to a stream |
| public XMLEventWriter | createXMLEventWriter(Result
the result to write to result)Implements abstract javax. Create a new XMLEventWriter that writes to a JAXP result. |
| public XMLEventWriter | createXMLEventWriter(Writer
the stream to write to w)Implements abstract javax. Create a new XMLEventWriter that writes to a writer |
| public XMLEventWriter | createXMLEventWriter(Writer w, String enc)
Implements abstract org.
|
| public XMLEventWriter | createXMLEventWriter(XMLStreamWriter sw)
Implements abstract org.
|
| public XMLStreamWriter | createXMLStreamWriter(OutputStream
the stream to write to out)Implements abstract javax. Create a new XMLStreamWriter that writes to a stream |
| public XMLStreamWriter | createXMLStreamWriter(OutputStream
the stream to write to out, String the encoding to use enc)Implements abstract javax. Create a new XMLStreamWriter that writes to a stream |
| public XMLStreamWriter | createXMLStreamWriter(Result
the result to write to result)Implements abstract javax. Create a new XMLStreamWriter that writes to a JAXP result. |
| public XMLStreamWriter | createXMLStreamWriter(Writer
the writer to write to w)Implements abstract javax. Create a new XMLStreamWriter that writes to a writer |
| public XMLStreamWriter2 | createXMLStreamWriter(Writer w, String enc)
Implements abstract org.
|
| public WriterConfig | |
| public Object | getProperty(String
The name of the property name)Implements abstract javax. Get a feature/property on the underlying implementation |
| public boolean | isPropertySupported(String
The name of the property (may not be null) name)Implements abstract javax. Query the set of properties that this factory supports. |
| public void | setProperty(String
The name of the property name, Object The value of the property value)Implements abstract javax. Allows the user to set specific features/properties on the underlying implementation. |
| mConfig | back to summary |
|---|---|
| protected final WriterConfig mConfig | |
| WstxOutputFactory | back to summary |
|---|---|
| public WstxOutputFactory() | |
| configureForRobustness | back to summary |
|---|---|
| public void configureForRobustness() Implements abstract org. Doc from org. Method call to make writer be as robust as possible, that is, to make it both check AND fix problems if it can.
Like None of currently defined standard properties should be affected, but implementations are likely to enable/disable custom properties related to validation.
| |
| configureForSpeed | back to summary |
|---|---|
| public void configureForSpeed() Implements abstract org. Doc from org. Method call to make writer optimize its operation for speed. This
generally disably additional checks (if any) writer does, and is
likely to disable many things that None of currently defined standard properties should be affected.
| |
| configureForXmlConformance | back to summary |
|---|---|
| public void configureForXmlConformance() Implements abstract org. Doc from org. 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. This 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.
| |
| createSW | back to summary |
|---|---|
| private XMLStreamWriter2 createSW(OutputStream out, Writer w, String enc, boolean requireAutoClose) throws XMLStreamException Bottleneck factory method used internally; needs to take care of passing proper settings to stream writer.
| |
| createSW | back to summary |
|---|---|
| protected XMLStreamWriter2 createSW(String enc, WriterConfig cfg, XmlWriter xw) Called by {code createSW(OutputStream, Writer, String, boolean)} after all of the necessary configuration logic is complete. | |
| createSW | back to summary |
|---|---|
private XMLStreamWriter2 createSW(Result res) throws XMLStreamException
| |
| createXMLEventWriter | back to summary |
|---|---|
| public XMLEventWriter createXMLEventWriter(OutputStream out) throws XMLStreamException Implements abstract javax. Doc from javax. Create a new XMLEventWriter that writes to a stream
| |
| createXMLEventWriter | back to summary |
|---|---|
| public XMLEventWriter createXMLEventWriter(OutputStream out, String enc) throws XMLStreamException Implements abstract javax. Doc from javax. Create a new XMLEventWriter that writes to a stream
| |
| createXMLEventWriter | back to summary |
|---|---|
| public XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException Implements abstract javax. Doc from javax. Create a new XMLEventWriter that writes to a JAXP result. This method is optional.
| |
| createXMLEventWriter | back to summary |
|---|---|
| public XMLEventWriter createXMLEventWriter(Writer w) throws XMLStreamException Implements abstract javax. Doc from javax. Create a new XMLEventWriter that writes to a writer
| |
| createXMLEventWriter | back to summary |
|---|---|
| public XMLEventWriter createXMLEventWriter(Writer w, String enc) throws XMLStreamException Implements abstract org.
| |
| createXMLEventWriter | back to summary |
|---|---|
| public XMLEventWriter createXMLEventWriter(XMLStreamWriter sw) throws XMLStreamException Implements abstract org.
| |
| createXMLStreamWriter | back to summary |
|---|---|
| public XMLStreamWriter createXMLStreamWriter(OutputStream out) throws XMLStreamException Implements abstract javax. Doc from javax. Create a new XMLStreamWriter that writes to a stream
| |
| createXMLStreamWriter | back to summary |
|---|---|
| public XMLStreamWriter createXMLStreamWriter(OutputStream out, String enc) throws XMLStreamException Implements abstract javax. Doc from javax. Create a new XMLStreamWriter that writes to a stream
| |
| createXMLStreamWriter | back to summary |
|---|---|
| public XMLStreamWriter createXMLStreamWriter(Result result) throws XMLStreamException Implements abstract javax. Doc from javax. Create a new XMLStreamWriter that writes to a JAXP result. This method is optional.
| |
| createXMLStreamWriter | back to summary |
|---|---|
| public XMLStreamWriter createXMLStreamWriter(Writer w) throws XMLStreamException Implements abstract javax. Doc from javax. Create a new XMLStreamWriter that writes to a writer
| |
| createXMLStreamWriter | back to summary |
|---|---|
| public XMLStreamWriter2 createXMLStreamWriter(Writer w, String enc) throws XMLStreamException Implements abstract org.
| |
| getConfig | back to summary |
|---|---|
| public WriterConfig getConfig() | |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String name) Implements abstract javax. Doc from javax. Get a feature/property on the underlying implementation | |
| isPropertySupported | back to summary |
|---|---|
| public boolean isPropertySupported(String name) Implements abstract javax. Doc from javax. Query the set of properties that this factory supports. | |
| setProperty | back to summary |
|---|---|
| public void setProperty(String name, Object value) Implements abstract javax. Doc from javax. Allows the user to set specific features/properties on the underlying implementation. | |