com.bea.xml.stream
Class XMLEventReaderBase
java.lang.Object
com.bea.xml.stream.XMLEventReaderBase
- All Implemented Interfaces:
- Iterator, XMLEventConsumer, XMLEventReader
- Direct Known Subclasses:
- XMLEventPlayer
- public class XMLEventReaderBase
- extends Object
- implements XMLEventReader, XMLEventConsumer
The base reader class.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reader
protected XMLStreamReader reader
allocator
protected XMLEventAllocator allocator
XMLEventReaderBase
public XMLEventReaderBase(XMLStreamReader reader)
throws XMLStreamException
XMLEventReaderBase
public XMLEventReaderBase(XMLStreamReader reader,
XMLEventAllocator alloc)
throws XMLStreamException
setAllocator
public void setAllocator(XMLEventAllocator allocator)
getElementText
public String getElementText()
throws XMLStreamException
- Specified by:
getElementText in interface XMLEventReader
- Throws:
XMLStreamException
nextTag
public XMLEvent nextTag()
throws XMLStreamException
- Specified by:
nextTag in interface XMLEventReader
- Throws:
XMLStreamException
next
public Object next()
- Specified by:
next in interface Iterator
nextEvent
public XMLEvent nextEvent()
throws XMLStreamException
- Specified by:
nextEvent in interface XMLEventReader
- Throws:
XMLStreamException
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface XMLEventReader
peek
public XMLEvent peek()
throws XMLStreamException
- Specified by:
peek in interface XMLEventReader
- Throws:
XMLStreamException
add
public void add(XMLEvent event)
throws XMLStreamException
- Specified by:
add in interface XMLEventConsumer
- Throws:
XMLStreamException
needsMore
protected boolean needsMore()
get
protected XMLEvent get()
throws XMLStreamException
- Throws:
XMLStreamException
isOpen
protected boolean isOpen()
internal_close
protected void internal_close()
close
public void close()
throws XMLStreamException
- Specified by:
close in interface XMLEventReader
- Throws:
XMLStreamException
parseSome
protected boolean parseSome()
throws XMLStreamException
- Throws:
XMLStreamException
setConfigurationContext
public void setConfigurationContext(ConfigurationContextBase base)
getProperty
public Object getProperty(String name)
- Specified by:
getProperty in interface XMLEventReader
remove
public void remove()
- Specified by:
remove in interface Iterator
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2004 . All Rights Reserved.