public class StAXEventReader extends 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() |
String |
getElementText()
Reads the content of a text-only element.
|
Object |
getProperty(String name)
Get the value of a feature/property from the underlying implementation
|
boolean |
hasNext() |
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
public boolean hasNext()
hasNext in interface 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 close()
throws javax.xml.stream.XMLStreamException
close in interface javax.xml.stream.XMLEventReaderjavax.xml.stream.XMLStreamExceptionpublic 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 Object getProperty(String name) throws IllegalArgumentException
getProperty in interface javax.xml.stream.XMLEventReadername - The name of the propertyIllegalArgumentException - 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 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)
Copyright © 2012 Oracle Corpration. All Rights Reserved.