public class StAXEventReader
extends java.lang.Object
implements javax.xml.stream.XMLEventReader
| Modifier and Type | Field and Description |
|---|---|
protected javax.xml.stream.util.XMLEventAllocator |
_eventAllocator |
protected javax.xml.stream.XMLStreamReader |
_streamReader |
| Constructor and Description |
|---|
StAXEventReader(javax.xml.stream.XMLStreamReader reader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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() |
java.lang.Object |
next() |
javax.xml.stream.events.XMLEvent |
nextEvent() |
javax.xml.stream.events.XMLEvent |
nextTag()
Skips any insignificant space events until a START_ELEMENT or
END_ELEMENT is reached.
|
javax.xml.stream.events.XMLEvent |
peek() |
void |
remove() |
void |
setAllocator(javax.xml.stream.util.XMLEventAllocator allocator) |
protected javax.xml.stream.XMLStreamReader _streamReader
protected javax.xml.stream.util.XMLEventAllocator _eventAllocator
public StAXEventReader(javax.xml.stream.XMLStreamReader reader)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionpublic boolean hasNext()
hasNext in interface java.util.IteratorhasNext in interface javax.xml.stream.XMLEventReaderpublic javax.xml.stream.events.XMLEvent nextEvent()
throws javax.xml.stream.XMLStreamException
nextEvent in interface javax.xml.stream.XMLEventReaderjavax.xml.stream.XMLStreamExceptionpublic void remove()
remove in interface java.util.Iteratorpublic void close()
throws javax.xml.stream.XMLStreamException
close in interface javax.xml.stream.XMLEventReaderjavax.xml.stream.XMLStreamExceptionpublic java.lang.String getElementText()
throws javax.xml.stream.XMLStreamException
getElementText in interface javax.xml.stream.XMLEventReaderjavax.xml.stream.XMLStreamException - if the current event is not a START_ELEMENT
or if a non text element is encounteredpublic java.lang.Object getProperty(java.lang.String name)
throws java.lang.IllegalArgumentException
getProperty in interface javax.xml.stream.XMLEventReadername - The name of the propertyjava.lang.IllegalArgumentException - if the property is not supportedpublic javax.xml.stream.events.XMLEvent nextTag()
throws javax.xml.stream.XMLStreamException
nextTag in interface javax.xml.stream.XMLEventReaderjavax.xml.stream.XMLStreamException - if anything other than space characters are encounteredpublic java.lang.Object next()
next in interface java.util.Iteratorpublic javax.xml.stream.events.XMLEvent peek()
throws javax.xml.stream.XMLStreamException
peek in interface javax.xml.stream.XMLEventReaderjavax.xml.stream.XMLStreamExceptionpublic void setAllocator(javax.xml.stream.util.XMLEventAllocator allocator)