XMLStreamReader2).
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final StreamFilter |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | next()
Overrides javax. Implements javax. |
| public int | nextTag()
Overrides javax. Implements javax. |
| mFilter | back to summary |
|---|---|
| pack-priv final StreamFilter mFilter | |
| Stax2FilteredStreamReader | back to summary |
|---|---|
| public Stax2FilteredStreamReader(XMLStreamReader r, StreamFilter f) | |
| next | back to summary |
|---|---|
| public int next() throws XMLStreamException Overrides javax. 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
| |
| nextTag | back to summary |
|---|---|
| public int nextTag() throws XMLStreamException Overrides javax. Implements javax. Doc from javax. Skips any white space (isWhiteSpace() returns true), COMMENT,
or PROCESSING_INSTRUCTION,
until a START_ELEMENT or END_ELEMENT is reached.
If other than white space characters, COMMENT, PROCESSING_INSTRUCTION, START_ELEMENT, END_ELEMENT
are encountered, an exception is thrown. This method should
be used when processing element-only content separated by white space.
| |