|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bea.xml.stream.EventReaderFilter
| Constructor Summary | |
EventReaderFilter(javax.xml.stream.XMLEventReader reader)
|
|
EventReaderFilter(javax.xml.stream.XMLEventReader reader,
javax.xml.stream.EventFilter filter)
|
|
| Method Summary | |
void |
close()
Frees any resources associated with this Reader. |
java.lang.String |
getElementText()
Reads the content of a text-only element. |
java.lang.Object |
getProperty(java.lang.String name)
Get the value of a feature/property from the underlying implementation |
boolean |
hasNext()
Check if there are more events. |
static void |
main(java.lang.String[] args)
|
java.lang.Object |
next()
|
javax.xml.stream.events.XMLEvent |
nextEvent()
Get the next XMLEvent |
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()
Check the next XMLEvent without reading it from the stream. |
void |
remove()
|
void |
setFilter(javax.xml.stream.EventFilter filter)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EventReaderFilter(javax.xml.stream.XMLEventReader reader)
throws javax.xml.stream.XMLStreamException
public EventReaderFilter(javax.xml.stream.XMLEventReader reader,
javax.xml.stream.EventFilter filter)
throws javax.xml.stream.XMLStreamException
| Method Detail |
public void setFilter(javax.xml.stream.EventFilter filter)
public java.lang.Object next()
next in interface java.util.Iterator
public javax.xml.stream.events.XMLEvent nextEvent()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLEventReader
nextEvent in interface javax.xml.stream.XMLEventReaderjavax.xml.stream.XMLStreamException - if there is an error with the underlying XML.XMLEvent
public java.lang.String getElementText()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLEventReader
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 encountered
public javax.xml.stream.events.XMLEvent nextTag()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLEventReader
nextTag in interface javax.xml.stream.XMLEventReaderjavax.xml.stream.XMLStreamException - if anything other than space characters are encounteredpublic boolean hasNext()
javax.xml.stream.XMLEventReader
hasNext in interface javax.xml.stream.XMLEventReaderpublic void remove()
remove in interface java.util.Iterator
public javax.xml.stream.events.XMLEvent peek()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLEventReader
peek in interface javax.xml.stream.XMLEventReaderjavax.xml.stream.XMLStreamExceptionXMLEvent
public void close()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLEventReader
close in interface javax.xml.stream.XMLEventReaderjavax.xml.stream.XMLStreamException - if there are errors freeing associated resourcespublic java.lang.Object getProperty(java.lang.String name)
javax.xml.stream.XMLEventReader
getProperty in interface javax.xml.stream.XMLEventReadername - The name of the property
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||