|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XMLEventReader
This is the top level interface for parsing XML Events. It provides the ability to peek at the next event and returns configuration information through the property interface.
XMLInputFactory
,
XMLEventWriter
Method Summary | |
---|---|
void |
close()
Frees any resources associated with this Reader. |
java.lang.String |
getElementText()
Reads the content of a text-only element. |
java.lang.Object |
getProperty(java.lang.String name)
Get the value of a feature/property from the underlying implementation |
boolean |
hasNext()
Check if there are more events. |
XMLEvent |
nextEvent()
Get the next XMLEvent |
XMLEvent |
nextTag()
Skips any insignificant space events until a START_ELEMENT or END_ELEMENT is reached. |
XMLEvent |
peek()
Check the next XMLEvent without reading it from the stream. |
Methods inherited from interface java.util.Iterator |
---|
next, remove |
Method Detail |
---|
XMLEvent nextEvent() throws XMLStreamException
XMLStreamException
- if there is an error with the underlying XML.
NoSuchElementException
- iteration has no more elements.XMLEvent
boolean hasNext()
hasNext
in interface java.util.Iterator
XMLEvent peek() throws XMLStreamException
XMLStreamException
XMLEvent
java.lang.String getElementText() throws XMLStreamException
XMLStreamException
- if the current event is not a START_ELEMENT
or if a non text element is encounteredXMLEvent nextTag() throws XMLStreamException
XMLStreamException
- if anything other than space characters are encounteredjava.lang.Object getProperty(java.lang.String name) throws java.lang.IllegalArgumentException
name
- The name of the property
java.lang.IllegalArgumentException
- if the property is not supportedvoid close() throws XMLStreamException
XMLStreamException
- if there are errors freeing associated resources
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 4-June-2010 04:34