com.caucho.xml.stream
Class XMLEventReaderImpl

java.lang.Object
  extended by com.caucho.xml.stream.XMLEventReaderImpl
All Implemented Interfaces:
java.util.Iterator, XMLEventReader

public class XMLEventReaderImpl
extends java.lang.Object
implements XMLEventReader


Field Summary
static L10N L
           
 
Constructor Summary
XMLEventReaderImpl(XMLEventAllocator allocator, XMLStreamReader in)
           
 
Method Summary
 void close()
           
 java.lang.String getElementText()
           
 java.lang.Object getProperty(java.lang.String name)
           
 XMLStreamReader getXMLStreamReader()
           
 boolean hasNext()
           
 XMLEvent next()
           
 XMLEvent nextEvent()
           
 XMLEvent nextTag()
           
 XMLEvent peek()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

L

public static final L10N L
Constructor Detail

XMLEventReaderImpl

public XMLEventReaderImpl(XMLEventAllocator allocator,
                          XMLStreamReader in)
                   throws XMLStreamException
Throws:
XMLStreamException
Method Detail

getXMLStreamReader

public XMLStreamReader getXMLStreamReader()

close

public void close()
           throws XMLStreamException
Specified by:
close in interface XMLEventReader
Throws:
XMLStreamException

getElementText

public java.lang.String getElementText()
                                throws XMLStreamException
Specified by:
getElementText in interface XMLEventReader
Throws:
XMLStreamException

getProperty

public java.lang.Object getProperty(java.lang.String name)
                             throws java.lang.IllegalArgumentException
Specified by:
getProperty in interface XMLEventReader
Throws:
java.lang.IllegalArgumentException

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator
Specified by:
hasNext in interface XMLEventReader

nextEvent

public XMLEvent nextEvent()
                   throws XMLStreamException
Specified by:
nextEvent in interface XMLEventReader
Throws:
XMLStreamException

nextTag

public XMLEvent nextTag()
                 throws XMLStreamException
Specified by:
nextTag in interface XMLEventReader
Throws:
XMLStreamException

peek

public XMLEvent peek()
              throws XMLStreamException
Specified by:
peek in interface XMLEventReader
Throws:
XMLStreamException

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

next

public XMLEvent next()
Specified by:
next in interface java.util.Iterator