Class SimpleXMLEventReader
- java.lang.Object
-
- org.apache.synapse.commons.staxon.core.event.SimpleXMLEventReader
-
- All Implemented Interfaces:
Iterator<Object>,XMLEventReader
public class SimpleXMLEventReader extends Object implements XMLEventReader
Simple implementation ofXMLEventReader.
-
-
Constructor Summary
Constructors Constructor Description SimpleXMLEventReader(XMLStreamReader delegate)SimpleXMLEventReader(XMLStreamReader delegate, XMLEventAllocator allocator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XMLEventallocate()voidclose()StringgetElementText()ObjectgetProperty(String name)booleanhasNext()Objectnext()XMLEventnextEvent()XMLEventnextTag()XMLEventpeek()voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
SimpleXMLEventReader
public SimpleXMLEventReader(XMLStreamReader delegate)
-
SimpleXMLEventReader
public SimpleXMLEventReader(XMLStreamReader delegate, XMLEventAllocator allocator)
-
-
Method Detail
-
allocate
protected XMLEvent allocate() throws XMLStreamException
- Throws:
XMLStreamException
-
close
public void close() throws XMLStreamException- Specified by:
closein interfaceXMLEventReader- Throws:
XMLStreamException
-
getElementText
public String getElementText() throws XMLStreamException
- Specified by:
getElementTextin interfaceXMLEventReader- Throws:
XMLStreamException
-
getProperty
public Object getProperty(String name)
- Specified by:
getPropertyin interfaceXMLEventReader
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<Object>- Specified by:
hasNextin interfaceXMLEventReader
-
nextEvent
public XMLEvent nextEvent() throws XMLStreamException
- Specified by:
nextEventin interfaceXMLEventReader- Throws:
XMLStreamException
-
nextTag
public XMLEvent nextTag() throws XMLStreamException
- Specified by:
nextTagin interfaceXMLEventReader- Throws:
XMLStreamException
-
peek
public XMLEvent peek() throws XMLStreamException
- Specified by:
peekin interfaceXMLEventReader- Throws:
XMLStreamException
-
-