de.bsvrz.sys.funclib.xmlSupport.saxPullAdapter
Class PullableEventStream

java.lang.Object
  extended by de.bsvrz.sys.funclib.xmlSupport.saxPullAdapter.PullableEventStream

public class PullableEventStream
extends Object

Klasse, zum Zugriff auf die vom SaxPullAdapter beim Parsen einer XML-Datei erzeugten Ereignisse.

Author:
Kappich Systemberatung

Field Summary
private  Event _currentEvent
           
private  StartElementEvent _lastStartElement
           
private  BufferedQueue<Event> _queue
           
 
Constructor Summary
PullableEventStream(BufferedQueue<Event> queue)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_queue

private final BufferedQueue<Event> _queue

_currentEvent

private Event _currentEvent

_lastStartElement

private StartElementEvent _lastStartElement
Constructor Detail

PullableEventStream

public PullableEventStream(BufferedQueue<Event> queue)
                    throws InterruptedException
Throws:
InterruptedException
Method Detail

pullAnyEvent

public Event pullAnyEvent()
                   throws InterruptedException
Throws:
InterruptedException

pullNonIgnorableEvent

public Event pullNonIgnorableEvent()
                            throws InterruptedException
Throws:
InterruptedException

pullStartElement

public StartElementEvent pullStartElement()
                                   throws InterruptedException,
                                          SAXException
Throws:
InterruptedException
SAXException

pullStartElement

public StartElementEvent pullStartElement(String tag)
                                   throws InterruptedException,
                                          SAXException
Throws:
InterruptedException
SAXException

pullEndElement

public EndElementEvent pullEndElement()
                               throws InterruptedException,
                                      SAXException
Throws:
InterruptedException
SAXException

pullEndElement

public EndElementEvent pullEndElement(String tag)
                               throws InterruptedException,
                                      SAXException
Throws:
InterruptedException
SAXException

pullCharacters

public CharactersEvent pullCharacters()
                               throws InterruptedException,
                                      SAXException
Throws:
InterruptedException
SAXException

pullIgnorableCharacters

public IgnorableCharactersEvent pullIgnorableCharacters()
                                                 throws InterruptedException,
                                                        SAXException
Throws:
InterruptedException
SAXException

ignoreIgnorableCharacters

private void ignoreIgnorableCharacters()
                                throws InterruptedException
Throws:
InterruptedException

matchStartElement

public boolean matchStartElement()
                          throws InterruptedException
Throws:
InterruptedException

matchStartElement

public boolean matchStartElement(String tag)
                          throws InterruptedException
Throws:
InterruptedException

matchEndElement

public boolean matchEndElement()
                        throws InterruptedException
Throws:
InterruptedException

matchEndElement

public boolean matchEndElement(String tag)
                        throws InterruptedException
Throws:
InterruptedException

matchCharacters

public boolean matchCharacters()
                        throws InterruptedException
Throws:
InterruptedException

matchIgnorableCharacters

public boolean matchIgnorableCharacters()
                                 throws InterruptedException
Throws:
InterruptedException

getLastStartElement

public StartElementEvent getLastStartElement()

getLocationHint

public String getLocationHint()