Package com.bea.xml.stream
Class XMLEventReaderBase
java.lang.Object
com.bea.xml.stream.XMLEventReaderBase
- All Implemented Interfaces:
Iterator<Object>
,XMLEventConsumer
,XMLEventReader
- Direct Known Subclasses:
XMLEventPlayer
The base reader class.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXMLEventReaderBase
(XMLStreamReader reader) XMLEventReaderBase
(XMLStreamReader reader, XMLEventAllocator alloc) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
protected XMLEvent
get()
getProperty
(String name) boolean
hasNext()
protected void
protected boolean
isOpen()
static void
protected boolean
next()
nextTag()
protected boolean
peek()
void
remove()
void
setAllocator
(XMLEventAllocator allocator) void
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
-
Field Details
-
reader
-
allocator
-
-
Constructor Details
-
XMLEventReaderBase
- Throws:
XMLStreamException
-
XMLEventReaderBase
public XMLEventReaderBase(XMLStreamReader reader, XMLEventAllocator alloc) throws XMLStreamException - Throws:
XMLStreamException
-
-
Method Details
-
setAllocator
-
getElementText
- Specified by:
getElementText
in interfaceXMLEventReader
- Throws:
XMLStreamException
-
nextTag
- Specified by:
nextTag
in interfaceXMLEventReader
- Throws:
XMLStreamException
-
next
-
nextEvent
- Specified by:
nextEvent
in interfaceXMLEventReader
- Throws:
XMLStreamException
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<Object>
- Specified by:
hasNext
in interfaceXMLEventReader
-
peek
- Specified by:
peek
in interfaceXMLEventReader
- Throws:
XMLStreamException
-
add
- Specified by:
add
in interfaceXMLEventConsumer
- Throws:
XMLStreamException
-
needsMore
protected boolean needsMore() -
get
- Throws:
XMLStreamException
-
isOpen
protected boolean isOpen() -
internal_close
protected void internal_close() -
close
- Specified by:
close
in interfaceXMLEventReader
- Throws:
XMLStreamException
-
parseSome
- Throws:
XMLStreamException
-
setConfigurationContext
-
getProperty
- Specified by:
getProperty
in interfaceXMLEventReader
-
remove
public void remove() -
main
- Throws:
Exception
-