javax.xml.stream.XMLInputFactory .Todo
- CHECK_CHAR_VALIDITY (separate for white spaces?) - CATALOG_RESOLVER? (or at least, ENABLE_CATALOGS)
| Modifier and Type | Class and Description |
|---|---|
| public static class | WstxInputProperties.
Inner class used for creating type-safe enumerations (prior to JDK 1.5). |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | P_ALLOW_XML11_ESCAPED_CHARS_IN_XML10
Allow all XML 1.1 characters escapes even if input document is described as XML 1.0 (in addition to ones allowed in 1.l0). |
| public static final String | P_BASE_URL
Property of type |
| public static final String | P_CACHE_DTDS
Whether readers will try to cache parsed external DTD subsets or not. |
| public static final String | P_CACHE_DTDS_BY_PUBLIC_ID
Whether reader is to cache DTDs (when caching enabled) based on public id or not: if not, system id will be primarily used. |
| public static final String | P_CUSTOM_INTERNAL_ENTITIES
Property of type |
| public static final String | P_DTD_RESOLVER
Property of type |
| public static final String | P_ENTITY_RESOLVER
Property of type |
| public static final String | P_INPUT_BUFFER_LENGTH
Size of input buffer (in chars), to use for reading XML content from input stream/reader. |
| public static final String | P_INPUT_PARSING_MODE
Three-valued property (one of
|
| public static final String | P_LAZY_PARSING
Deprecated
As of Woodstox 4.0 use
Whether stream readers are allowed to do lazy parsing, meaning
to parse minimal part of the event when
XMLInputFactory2#P_LAZY_PARSING instead (from
Stax2 extension API, v3.0)
javax. is called, and only parse the rest
as needed (or skip remainder of no extra information is needed).
|
| public static final String | P_MAX_ATTRIBUTE_SIZE
Maximum length of of individual attribute values (in characters) |
| public static final String | P_MAX_ATTRIBUTES_PER_ELEMENT
Maximum number of attributes allowed for single XML element. |
| public static final String | P_MAX_CHARACTERS
Maximum length of input document, in characters. |
| public static final String | P_MAX_CHILDREN_PER_ELEMENT
Maximum number of child elements for any given element. |
| public static final String | P_MAX_DTD_DEPTH
Maximum level of nesting of XML elements, starting with root element. |
| public static final String | P_MAX_ELEMENT_COUNT
Maximum number of all elements in a single document. |
| public static final String | P_MAX_ELEMENT_DEPTH
Maximum level of nesting of XML elements, starting with root element. |
| public static final String | P_MAX_ENTITY_COUNT
Maximum number of total (general parsed) entity expansions within input. |
| public static final String | P_MAX_ENTITY_DEPTH
Maximum depth of nested (general parsed) entity expansions. |
| public static final String | P_MAX_TEXT_LENGTH
Maximum length of individual text (cdata) segments in input, in characters. |
| public static final String | P_MIN_TEXT_SEGMENT
Property to specify shortest non-complete text segment (part of CDATA section or text content) that parser is allowed to return, if not required to coalesce text. |
| public static final String | P_NORMALIZE_LFS
Feature that controls whether linefeeds are normalized into canonical linefeed as mandated by xml specification. |
| public static final String | P_RETURN_NULL_FOR_DEFAULT_NAMESPACE
This read-only property indicates whether null is returned for default name space prefix; Boolean.TRUE indicates it does, Boolean.FALSE that it does not. |
| public static final String | P_SUPPORT_DTDPP
Deprecated
Never implement, let's phase this out (deprecated in 4.2)
Whether the Reader will recognized DTD++ extensions when parsing
DTD subsets.
|
| public static final String | P_TREAT_CHAR_REFS_AS_ENTS
Whether the Reader will treat character references as entities while parsing XML documents. |
| public static final String | P_UNDECLARED_ENTITY_RESOLVER
Property of type |
| public static final String | P_VALIDATE_TEXT_CHARS
Whether readers will verify that characters in text content are fully valid XML characters (not just Unicode). |
| public static final WstxInputProperties. | |
| public static final WstxInputProperties. | |
| public static final WstxInputProperties. | |
| public static final String | UNKNOWN_ATTR_TYPE
Constants used when no DTD handling is done, and we do not know the 'real' type of an attribute. |
| Access | Constructor and Description |
|---|---|
| public |
| P_ALLOW_XML11_ESCAPED_CHARS_IN_XML10 | back to summary |
|---|---|
| public static final String P_ALLOW_XML11_ESCAPED_CHARS_IN_XML10 Allow all XML 1.1 characters escapes even if input document is described as XML 1.0 (in addition to ones allowed in 1.l0). Since this is non-standard option (that is, deviates from XML specification), it is disabled by default.
| |
| P_BASE_URL | back to summary |
|---|---|
| public static final String P_BASE_URL Property of type | |
| P_CACHE_DTDS | back to summary |
|---|---|
| public static final String P_CACHE_DTDS Whether readers will try to cache parsed external DTD subsets or not. | |
| P_CACHE_DTDS_BY_PUBLIC_ID | back to summary |
|---|---|
| public static final String P_CACHE_DTDS_BY_PUBLIC_ID Whether reader is to cache DTDs (when caching enabled) based on public id or not: if not, system id will be primarily used. Although theoretically public IDs should be unique, and should be good caching keys, sometimes broken documents use 'wrong' public IDs, and such by default caching keys are based on system id only. | |
| P_CUSTOM_INTERNAL_ENTITIES | back to summary |
|---|---|
| public static final String P_CUSTOM_INTERNAL_ENTITIES Property of type | |
| P_DTD_RESOLVER | back to summary |
|---|---|
| public static final String P_DTD_RESOLVER Property of type | |
| P_ENTITY_RESOLVER | back to summary |
|---|---|
| public static final String P_ENTITY_RESOLVER Property of type | |
| P_INPUT_BUFFER_LENGTH | back to summary |
|---|---|
| public static final String P_INPUT_BUFFER_LENGTH Size of input buffer (in chars), to use for reading XML content from input stream/reader. | |
| P_INPUT_PARSING_MODE | back to summary |
|---|---|
| public static final String P_INPUT_PARSING_MODE Three-valued property (one of
The main difference from the API perspective is that in first two modes, START_DOCUMENT and END_DOCUMENT are used as usual (as the first and last events returned), whereas the multi-document mode can return multiple pairs of these events: although it is still true that the first event (one cursor points to when reader is instantiated or returned by the event reader), there may be intervening pairs that signal boundary between two adjacent enclosed documents. | |
| P_LAZY_PARSING | back to summary |
|---|---|
| public static final String P_LAZY_PARSING
Deprecated As of Woodstox 4.0 use
Whether stream readers are allowed to do lazy parsing, meaning
to parse minimal part of the event when
Enabling lazy parsing can improve performance for tasks where
number of textual events are skipped. The downside is that
not all well-formedness problems are reported when
Default value for Woodstox is such that lazy parsing is enabled. | |
| P_MAX_ATTRIBUTE_SIZE | back to summary |
|---|---|
| public static final String P_MAX_ATTRIBUTE_SIZE Maximum length of of individual attribute values (in characters)
| |
| P_MAX_ATTRIBUTES_PER_ELEMENT | back to summary |
|---|---|
| public static final String P_MAX_ATTRIBUTES_PER_ELEMENT Maximum number of attributes allowed for single XML element.
| |
| P_MAX_CHARACTERS | back to summary |
|---|---|
| public static final String P_MAX_CHARACTERS Maximum length of input document, in characters.
| |
| P_MAX_CHILDREN_PER_ELEMENT | back to summary |
|---|---|
| public static final String P_MAX_CHILDREN_PER_ELEMENT Maximum number of child elements for any given element.
| |
| P_MAX_DTD_DEPTH | back to summary |
|---|---|
| public static final String P_MAX_DTD_DEPTH Maximum level of nesting of XML elements, starting with root element.
| |
| P_MAX_ELEMENT_COUNT | back to summary |
|---|---|
| public static final String P_MAX_ELEMENT_COUNT Maximum number of all elements in a single document.
| |
| P_MAX_ELEMENT_DEPTH | back to summary |
|---|---|
| public static final String P_MAX_ELEMENT_DEPTH Maximum level of nesting of XML elements, starting with root element.
| |
| P_MAX_ENTITY_COUNT | back to summary |
|---|---|
| public static final String P_MAX_ENTITY_COUNT Maximum number of total (general parsed) entity expansions within input.
| |
| P_MAX_ENTITY_DEPTH | back to summary |
|---|---|
| public static final String P_MAX_ENTITY_DEPTH Maximum depth of nested (general parsed) entity expansions.
| |
| P_MAX_TEXT_LENGTH | back to summary |
|---|---|
| public static final String P_MAX_TEXT_LENGTH Maximum length of individual text (cdata) segments in input, in characters.
| |
| P_MIN_TEXT_SEGMENT | back to summary |
|---|---|
| public static final String P_MIN_TEXT_SEGMENT Property to specify shortest non-complete text segment (part of CDATA section or text content) that parser is allowed to return, if not required to coalesce text. | |
| P_NORMALIZE_LFS | back to summary |
|---|---|
| public static final String P_NORMALIZE_LFS Feature that controls whether linefeeds are normalized into canonical linefeed as mandated by xml specification. Note that disabling this property (from its default enabled state) will result in non-conforming XML processing. It may be useful for use cases where changes to input content should be minimized. Note this property was initially removed from Woodstox 4.0, but was reintroduced in 4.0.8 due to user request. | |
| P_RETURN_NULL_FOR_DEFAULT_NAMESPACE | back to summary |
|---|---|
| public static final String P_RETURN_NULL_FOR_DEFAULT_NAMESPACE This read-only property indicates whether null is returned for default name space prefix; Boolean.TRUE indicates it does, Boolean.FALSE that it does not. Default value for 4.1 is 'false'; this will most likely change for 5.0 since Stax API actually specifies null to be used.
| |
| P_SUPPORT_DTDPP | back to summary |
|---|---|
| public static final String P_SUPPORT_DTDPP
Deprecated Never implement, let's phase this out (deprecated in 4.2) Whether the Reader will recognized DTD++ extensions when parsing DTD subsets. Note not implemented by Woodstox. | |
| P_TREAT_CHAR_REFS_AS_ENTS | back to summary |
|---|---|
| public static final String P_TREAT_CHAR_REFS_AS_ENTS Whether the Reader will treat character references as entities while parsing XML documents. | |
| P_UNDECLARED_ENTITY_RESOLVER | back to summary |
|---|---|
| public static final String P_UNDECLARED_ENTITY_RESOLVER Property of type | |
| P_VALIDATE_TEXT_CHARS | back to summary |
|---|---|
| public static final String P_VALIDATE_TEXT_CHARS Whether readers will verify that characters in text content are fully valid XML characters (not just Unicode). If true, will check that they are valid (including white space); if false, will not check. Note that this property will NOT have effect on all encoding problems, specifically:
Turning this option off may improve parsing performance; leaving it on guarantees compatibility with XML 1.0 specification regarding character validity rules. | |
| PARSING_MODE_DOCUMENT | back to summary |
|---|---|
| public static final WstxInputProperties. | |
| PARSING_MODE_DOCUMENTS | back to summary |
|---|---|
| public static final WstxInputProperties. | |
| PARSING_MODE_FRAGMENT | back to summary |
|---|---|
| public static final WstxInputProperties. | |
| UNKNOWN_ATTR_TYPE | back to summary |
|---|---|
| public static final String UNKNOWN_ATTR_TYPE Constants used when no DTD handling is done, and we do not know the 'real' type of an attribute. Seems like CDATA is the safe choice. | |
| WstxInputProperties | back to summary |
|---|---|
| public WstxInputProperties() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| ParsingMode | back to summary |
|---|---|
| pack-priv ParsingMode() | |