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
InterruptedException
public Event pullAnyEvent() throws InterruptedException
InterruptedException
public Event pullNonIgnorableEvent() throws InterruptedException
InterruptedException
public StartElementEvent pullStartElement() throws InterruptedException, SAXException
InterruptedException
SAXException
public StartElementEvent pullStartElement(String tag) throws InterruptedException, SAXException
InterruptedException
SAXException
public EndElementEvent pullEndElement() throws InterruptedException, SAXException
InterruptedException
SAXException
public EndElementEvent pullEndElement(String tag) throws InterruptedException, SAXException
InterruptedException
SAXException
public CharactersEvent pullCharacters() throws InterruptedException, SAXException
InterruptedException
SAXException
public IgnorableCharactersEvent pullIgnorableCharacters() throws InterruptedException, SAXException
InterruptedException
SAXException
private void ignoreIgnorableCharacters() throws InterruptedException
InterruptedException
public boolean matchStartElement() throws InterruptedException
InterruptedException
public boolean matchStartElement(String tag) throws InterruptedException
InterruptedException
public boolean matchEndElement() throws InterruptedException
InterruptedException
public boolean matchEndElement(String tag) throws InterruptedException
InterruptedException
public boolean matchCharacters() throws InterruptedException
InterruptedException
public boolean matchIgnorableCharacters() throws InterruptedException
InterruptedException
public StartElementEvent getLastStartElement()
public String getLocationHint()