javax.xml.stream.XMLEventReader , StreamReaderDelegate
| Modifier and Type | Field and Description |
|---|---|
| private XMLEventReader |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements javax. Frees any resources associated with this Reader. |
| public String | getElementText()
Implements javax. Reads the content of a text-only element. |
| public XMLEventReader | |
| public Object | getProperty(String name)
Implements javax. Get the value of a feature/property from the underlying implementation |
| public boolean | |
| public Object | |
| public XMLEvent | |
| public XMLEvent | nextTag()
Implements javax. Skips any insignificant space events until a START_ELEMENT or END_ELEMENT is reached. |
| public XMLEvent | peek()
Implements javax. Check the next XMLEvent without reading it from the stream. |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| public void |
| reader | back to summary |
|---|---|
| private XMLEventReader reader | |
| EventReaderDelegate | back to summary |
|---|---|
| public EventReaderDelegate() Construct an empty filter with no parent. | |
| EventReaderDelegate | back to summary |
|---|---|
| public EventReaderDelegate(XMLEventReader reader) Construct an filter with the specified parent.
| |
| close | back to summary |
|---|---|
| public void close() throws XMLStreamException Implements javax. Doc from javax. Frees any resources associated with this Reader. This method does not close the underlying input source.
| |
| getElementText | back to summary |
|---|---|
| public String getElementText() throws XMLStreamException Implements javax. Doc from javax. Reads the content of a text-only element. Precondition the current event is START_ELEMENT. Postcondition: The current event is the corresponding END_ELEMENT.
| |
| getParent | back to summary |
|---|---|
| public XMLEventReader getParent() Get the parent of this instance.
| |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String name) throws IllegalArgumentException Implements javax. Doc from javax. Get the value of a feature/property from the underlying implementation
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements javax. Doc from javax. Check if there are more events. Returns true if there are more events and false otherwise. | |
| next | back to summary |
|---|---|
| public Object next() Implements java. Doc from java. Returns the next element in the iteration. | |
| nextEvent | back to summary |
|---|---|
| public XMLEvent nextEvent() throws XMLStreamException Implements javax. Doc from javax. Gets the next XMLEvent. The initial event is
| |
| nextTag | back to summary |
|---|---|
| public XMLEvent nextTag() throws XMLStreamException Implements javax. Doc from javax. Skips any insignificant space events until a START_ELEMENT or END_ELEMENT is reached. If anything other than space characters are encountered, an exception is thrown. This method should be used when processing element-only content because the parser is not able to recognize ignorable whitespace if the DTD is missing or not interpreted.
| |
| peek | back to summary |
|---|---|
| public XMLEvent peek() throws XMLStreamException Implements javax. Doc from javax. Check the next XMLEvent without reading it from the stream. Returns null if the stream is at EOF or has no more XMLEvents. A call to peek() will be equal to the next return of next().
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the | |
| setParent | back to summary |
|---|---|
| public void setParent(XMLEventReader reader) Set the parent of this instance.
| |