javax.xml.stream.XMLOutputFactory .
| Modifier and Type | Field and Description |
|---|---|
| public static final String | DEFAULT_OUTPUT_ENCODING
If no encoding is passed, we should just default to what xml in general expects (and can determine), UTF-8. |
| public static final String | DEFAULT_XML_VERSION
Default xml version number output, if none was specified by application. |
| public static final String | P_ADD_SPACE_AFTER_EMPTY_ELEM
Whether writer is to add a single white space before closing |
| public static final String | P_AUTOMATIC_END_ELEMENTS
Whether stream writer is to automatically add end elements that are
needed to properly close the output tree, when the stream is closed
(either explicitly by a call to |
| public static final String | P_COPY_DEFAULT_ATTRS
Whether writer should copy attributes that were initially expanded using default settings ("implicit" attributes) or not. |
| public static final String | P_OUTPUT_CDATA_AS_TEXT
Whether writer should just automatically convert all calls that would normally produce CDATA to produce (quoted) text. |
| public static final String | P_OUTPUT_EMPTY_ELEMENT_HANDLER
Property that defines an |
| public static final String | P_OUTPUT_ESCAPE_CR
Property that determines whether Carriage Return (\r) characters are to be escaped when output or not. |
| public static final String | P_OUTPUT_FIX_CONTENT
Property that further modifies handling of invalid content so
that if |
| public static final String | P_OUTPUT_INVALID_CHAR_HANDLER
Property that defines a |
| public static final String | P_OUTPUT_UNDERLYING_STREAM
Property that can be used to find out the underlying
|
| public static final String | P_OUTPUT_UNDERLYING_WRITER
Property that can be used to find out the underlying
|
| public static final String | P_OUTPUT_VALIDATE_ATTR
Whether output classes should check uniqueness of attribute names, to prevent accidental output of duplicate attributes. |
| public static final String | P_OUTPUT_VALIDATE_CONTENT
Whether output classes should do basic verification that the textual content output as part of nodes should be checked for validity, if there's a possibility of invalid content. |
| public static final String | P_OUTPUT_VALIDATE_NAMES
Whether output classes should check validity of names, ie that they only contain legal XML identifier characters. |
| public static final String | P_OUTPUT_VALIDATE_STRUCTURE
Whether output classes should do basic verification that the output structure is well-formed (start and end elements match); that there is one and only one root, and that there is no textual content in prolog/epilog. |
| public static final String | P_USE_DOUBLE_QUOTES_IN_XML_DECL
Whether writer should use double quotes in the XML declaration. |
| Access | Constructor and Description |
|---|---|
| public |
| DEFAULT_OUTPUT_ENCODING | back to summary |
|---|---|
| public static final String DEFAULT_OUTPUT_ENCODING If no encoding is passed, we should just default to what xml in general expects (and can determine), UTF-8. Note you can check out bug entry [WSTX-18] for more details | |
| DEFAULT_XML_VERSION | back to summary |
|---|---|
| public static final String DEFAULT_XML_VERSION Default xml version number output, if none was specified by application. Version 1.0 is used to try to maximize compatibility (some older parsers may barf on 1.1 and later...) | |
| P_ADD_SPACE_AFTER_EMPTY_ELEM | back to summary |
|---|---|
| public static final String P_ADD_SPACE_AFTER_EMPTY_ELEM Whether writer is to add a single white space before closing The default value is 'false', up to Woodstox 4.x. Note JavaDocs for versions 4.0.0 - 4.0.7 incorrectly state that default is 'true': this is NOT the case. Note added to resolve Jira entry WSTX-125. | |
| P_AUTOMATIC_END_ELEMENTS | back to summary |
|---|---|
| public static final String P_AUTOMATIC_END_ELEMENTS Whether stream writer is to automatically add end elements that are
needed to properly close the output tree, when the stream is closed
(either explicitly by a call to The default value is 'true' as of Woodstox 4.x. Prior to 4.0, this feature was always enabled and there was no way to disable it)
| |
| P_COPY_DEFAULT_ATTRS | back to summary |
|---|---|
| public static final String P_COPY_DEFAULT_ATTRS Whether writer should copy attributes that were initially expanded using default settings ("implicit" attributes) or not. | |
| P_OUTPUT_CDATA_AS_TEXT | back to summary |
|---|---|
| public static final String P_OUTPUT_CDATA_AS_TEXT Whether writer should just automatically convert all calls that would normally produce CDATA to produce (quoted) text. | |
| P_OUTPUT_EMPTY_ELEMENT_HANDLER | back to summary |
|---|---|
| public static final String P_OUTPUT_EMPTY_ELEMENT_HANDLER Property that defines an | |
| P_OUTPUT_ESCAPE_CR | back to summary |
|---|---|
| public static final String P_OUTPUT_ESCAPE_CR Property that determines whether Carriage Return (\r) characters are to be escaped when output or not. If enabled, all instances of of character \r are escaped using a character entity (where possible, that is, within CHARACTERS events, and attribute values). Otherwise they are output as is. The main reason to enable this property is to ensure that carriage returns are preserved as is through parsing, since otherwise they will be converted to canonical xml linefeeds (\n), when occuring along or as part of \r\n pair. | |
| P_OUTPUT_FIX_CONTENT | back to summary |
|---|---|
| public static final String P_OUTPUT_FIX_CONTENT Property that further modifies handling of invalid content so
that if | |
| P_OUTPUT_INVALID_CHAR_HANDLER | back to summary |
|---|---|
| public static final String P_OUTPUT_INVALID_CHAR_HANDLER Property that defines a | |
| P_OUTPUT_UNDERLYING_STREAM | back to summary |
|---|---|
| public static final String P_OUTPUT_UNDERLYING_STREAM Property that can be used to find out the underlying
Note in general it is dangerous to operate on returned stream (if any), due to buffering stream writer can do. As such, caller has to take care to know what he is doing, including properly flushing output. | |
| P_OUTPUT_UNDERLYING_WRITER | back to summary |
|---|---|
| public static final String P_OUTPUT_UNDERLYING_WRITER Property that can be used to find out the underlying
Note in general it is dangerous to operate on returned Writer (if any), due to buffering stream writer can do. As such, caller has to take care to know what he is doing, including properly flushing output. | |
| P_OUTPUT_VALIDATE_ATTR | back to summary |
|---|---|
| public static final String P_OUTPUT_VALIDATE_ATTR Whether output classes should check uniqueness of attribute names, to prevent accidental output of duplicate attributes. | |
| P_OUTPUT_VALIDATE_CONTENT | back to summary |
|---|---|
| public static final String P_OUTPUT_VALIDATE_CONTENT Whether output classes should do basic verification that the textual
content output as part of nodes should be checked for validity,
if there's a possibility of invalid content. Nodes that include
such constraints are: comment/'--', cdata/ | |
| P_OUTPUT_VALIDATE_NAMES | back to summary |
|---|---|
| public static final String P_OUTPUT_VALIDATE_NAMES Whether output classes should check validity of names, ie that they only contain legal XML identifier characters. | |
| P_OUTPUT_VALIDATE_STRUCTURE | back to summary |
|---|---|
| public static final String P_OUTPUT_VALIDATE_STRUCTURE Whether output classes should do basic verification that the output structure is well-formed (start and end elements match); that there is one and only one root, and that there is no textual content in prolog/epilog. If false, won't do any checking regarding structure. | |
| P_USE_DOUBLE_QUOTES_IN_XML_DECL | back to summary |
|---|---|
| public static final String P_USE_DOUBLE_QUOTES_IN_XML_DECL Whether writer should use double quotes in the XML declaration. The default is to use single quotes.
| |
| WstxOutputProperties | back to summary |
|---|---|
| public WstxOutputProperties() | |