Stax2ReaderAdapter to override certain methods,
to patch over flaws of JDK-provided default Stax implementation, SJSXP
| Modifier and Type | Field and Description |
|---|---|
| private final XMLStreamReader |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | next()
Overrides org. Implements javax. Get next parsing event - a processor may return all contiguous character data in a single chunk, or it may split it into several chunks. |
| public static XMLStreamReader2 | wrapIfNecessary(XMLStreamReader sr)
Hides org. Method that should be used to add dynamic support for
|
| _delegate | back to summary |
|---|---|
| private final XMLStreamReader _delegate | |
| Stax2JacksonReaderAdapter | back to summary |
|---|---|
| public Stax2JacksonReaderAdapter(XMLStreamReader sr) | |
| next | back to summary |
|---|---|
| public int next() throws XMLStreamException Overrides org. Implements javax. Doc from javax. Get next parsing event - a processor may return all contiguous character data in a single chunk, or it may split it into several chunks. If the property javax.xml.stream.isCoalescing is set to true element content must be coalesced and only one CHARACTERS event must be returned for contiguous element content or CDATA Sections. By default entity references must be expanded and reported transparently to the application. An exception will be thrown if an entity reference cannot be expanded. If element content is empty (i.e. content is "") then no CHARACTERS event will be reported. Given the following XML: Note empty element (such as
| |
| wrapIfNecessary | back to summary |
|---|---|
| public static XMLStreamReader2 wrapIfNecessary(XMLStreamReader sr) Hides org. Doc from org. Method that should be used to add dynamic support for
| |