public class PullableEventStream extends Object
| Modifier and Type | Field and Description |
|---|---|
private Event |
_currentEvent |
private StartElementEvent |
_lastStartElement |
private BufferedQueue<Event> |
_queue |
| Constructor and Description |
|---|
PullableEventStream(BufferedQueue<Event> queue) |
| Modifier and Type | Method and Description |
|---|---|
StartElementEvent |
getLastStartElement() |
String |
getLocationHint() |
private void |
ignoreIgnorableCharacters() |
boolean |
matchCharacters() |
boolean |
matchEndElement() |
boolean |
matchEndElement(String tag) |
boolean |
matchIgnorableCharacters() |
boolean |
matchStartElement() |
boolean |
matchStartElement(String tag) |
Event |
pullAnyEvent() |
CharactersEvent |
pullCharacters() |
EndElementEvent |
pullEndElement() |
EndElementEvent |
pullEndElement(String tag) |
IgnorableCharactersEvent |
pullIgnorableCharacters() |
Event |
pullNonIgnorableEvent() |
StartElementEvent |
pullStartElement() |
StartElementEvent |
pullStartElement(String tag) |
private final BufferedQueue<Event> _queue
private Event _currentEvent
private StartElementEvent _lastStartElement
public PullableEventStream(BufferedQueue<Event> queue) throws InterruptedException
InterruptedExceptionpublic Event pullAnyEvent() throws InterruptedException
InterruptedExceptionpublic Event pullNonIgnorableEvent() throws InterruptedException
InterruptedExceptionpublic StartElementEvent pullStartElement() throws InterruptedException, SAXException
InterruptedExceptionSAXExceptionpublic StartElementEvent pullStartElement(String tag) throws InterruptedException, SAXException
InterruptedExceptionSAXExceptionpublic EndElementEvent pullEndElement() throws InterruptedException, SAXException
InterruptedExceptionSAXExceptionpublic EndElementEvent pullEndElement(String tag) throws InterruptedException, SAXException
InterruptedExceptionSAXExceptionpublic CharactersEvent pullCharacters() throws InterruptedException, SAXException
InterruptedExceptionSAXExceptionpublic IgnorableCharactersEvent pullIgnorableCharacters() throws InterruptedException, SAXException
InterruptedExceptionSAXExceptionprivate void ignoreIgnorableCharacters()
throws InterruptedException
InterruptedExceptionpublic boolean matchStartElement()
throws InterruptedException
InterruptedExceptionpublic boolean matchStartElement(String tag) throws InterruptedException
InterruptedExceptionpublic boolean matchEndElement()
throws InterruptedException
InterruptedExceptionpublic boolean matchEndElement(String tag) throws InterruptedException
InterruptedExceptionpublic boolean matchCharacters()
throws InterruptedException
InterruptedExceptionpublic boolean matchIgnorableCharacters()
throws InterruptedException
InterruptedExceptionpublic StartElementEvent getLastStartElement()
public String getLocationHint()