public class SAXEventQueue extends Object implements ContentHandler, LexicalHandler, ErrorHandler, SAXEventStream
ContentHandler (for receiving open tags, close tags, character data 
  and processing instructions),
  LexicalHandler (for receiving comments), and
  ErrorHandler.SAXEventStream, which must be actively
  polled by a consumer process, and supports to set a ErrorHandler,
  to which the incoming errors are transparently propagated.
  ArrayBlockingQueue,
  the other a 
  LinkedBlockingQueue.
  ContentHandler interface,
  the consumer the eu.bandm.tools.util.SAXEventStream interface.
  drainTo().
  SAXEventStream.EtherealMatcher, SAXEventStream.MatchException| Constructor and Description | 
|---|
| SAXEventQueue() | 
| SAXEventQueue(int size) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | characters(char[] data,
          int offset,
          int length) | 
| void | clear()FIXME benötigt?? | 
| void | comment(char[] ch,
       int start,
       int length) | 
| void | consume()Must only be called after (at least) one invocation of  lookahead(). | 
| String | consumeCharacters()Consumes any chararcter data event, and returns the data. | 
| void | consumedEthereals(SAXEventStream.EtherealMatcher matcher)Visits all ethereals which have been colleced immediately PRECEDING the last 
  consumed event (start tag/end tag/char data/end of document)
  Visit them in source text order (=reverse order of the linked list). | 
| void | drainTo(ContentHandler drain) | 
| void | dump(PrintStream os) | 
| void | endCDATA() | 
| void | endDocument()Write the last tag (a close tag) to the queue, because now it must have
  all its Ethereals. | 
| void | endDTD() | 
| void | endElement(String uri,
          String name,
          String qName) | 
| void | endEntity(String name) | 
| void | endPrefixMapping(String prefix) | 
| void | error(SAXParseException e) | 
| void | fatalError(SAXParseException e) | 
| Attributes | getAttributes() | 
| @Opt XMLDocumentIdentifier | getDocumentId()CHECK FIXME ist das wirklich "public" notwendig? | 
| ErrorHandler | getErrorHandler() | 
| String | getLocalName()Returns the local name of the current head, i.e. | 
| Location<XMLDocumentIdentifier> | getLocation()Delivers the location of the current NEXT Event, i.e. | 
| NamespaceName | getNamespaceName()Returns the namespace name of the current head, i.e. | 
| String | getNamespaceURI()Returns the namespace URI of the current head, i.e. | 
| String | getQualifiedName()Returns the qualified name of the current head, i.e. | 
| String | headToString()Returns the conventional textual representation of the current head. | 
| void | ignorableWhitespace(char[] data,
                   int offset,
                   int length) | 
| boolean | lookaheadCharacters()Returns whether the next SAX event represents character data. | 
| boolean | lookaheadEndDocument()Returns whether the next SAX event is the "End of Document" element. | 
| boolean | lookaheadEndElement()Returns whether the next SAX event is any end element event 
      (= close element tag) | 
| boolean | lookaheadEndElement(NamespaceName name)Returns whether the next SAX event is a certain end element event 
      (= close element tag) | 
| boolean | lookaheadEndElement(String qname)Returns whether the next SAX event is a certain end element event 
      (= close element tag) | 
| boolean | lookaheadStartElement()Returns whether the next SAX event is any start element event 
      (= open element tag) | 
| boolean | lookaheadStartElement(NamespaceName name)Returns whether the next SAX event is a certain start element event 
      (= open element tag) | 
| boolean | lookaheadStartElement(String qname)Returns whether the next SAX event is a certain start element event 
      (= open element tag) | 
| Location<XMLDocumentIdentifier> | matchedEtherealLocation() | 
| void | matchEndDocument()Consumes the first element (if it is the indicated end document element). | 
| void | matchEndElement(NamespaceName name)Consumes the first element (if it is the indicated end element). | 
| void | matchEndElement(String name)Consumes the first element (if it is the indicated end element). | 
| Attributes | matchStartElement(NamespaceName name)Consumes the first element (if it is the indicated start element) and
      returns its attribute set. | 
| Attributes | matchStartElement(String qname)Consumes the first element (if it is the indicated start element) and
      returns its attribute set. | 
| void | processingInstruction(String target,
                     String body) | 
| protected void | readInterrupted() | 
| void | setDocumentLocator(Locator locator) | 
| void | setErrorHandler(ErrorHandler errorHandler) | 
| void | sink()FIXME DOKU WAS SOLL DAS ? | 
| void | skippedEntity(String name) | 
| void | startCDATA() | 
| void | startDocument() | 
| void | startDTD(String name,
        String publicId,
        String systemId) | 
| void | startElement(String uri,
            String name,
            String qName,
            Attributes atts) | 
| void | startEntity(String name) | 
| void | startPrefixMapping(String prefix,
                  String uri) | 
| void | warning(SAXParseException e) | 
| protected void | writeInterrupted() | 
public SAXEventQueue()
public SAXEventQueue(int size)
public void setErrorHandler(ErrorHandler errorHandler)
public ErrorHandler getErrorHandler()
public void clear()
public void sink()
public void dump(PrintStream os)
protected void readInterrupted()
protected void writeInterrupted()
public void characters(char[] data,
                       int offset,
                       int length)
characters in interface ContentHandlerpublic void startDocument()
startDocument in interface ContentHandlerpublic void endDocument()
endDocument in interface ContentHandlerpublic void startPrefixMapping(String prefix, String uri)
startPrefixMapping in interface ContentHandlerpublic void endPrefixMapping(String prefix)
endPrefixMapping in interface ContentHandlerpublic void ignorableWhitespace(char[] data,
                                int offset,
                                int length)
ignorableWhitespace in interface ContentHandlerpublic void processingInstruction(String target, String body)
processingInstruction in interface ContentHandlerpublic void skippedEntity(String name)
skippedEntity in interface ContentHandlerpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerpublic void startElement(String uri, String name, String qName, Attributes atts)
startElement in interface ContentHandlerpublic void endElement(String uri, String name, String qName)
endElement in interface ContentHandlerpublic void comment(char[] ch,
                    int start,
                    int length)
comment in interface LexicalHandlerpublic void endCDATA()
endCDATA in interface LexicalHandlerpublic void endDTD()
endDTD in interface LexicalHandlerpublic void endEntity(String name)
endEntity in interface LexicalHandlerpublic void startCDATA()
startCDATA in interface LexicalHandlerpublic void startDTD(String name, String publicId, String systemId)
startDTD in interface LexicalHandlerpublic void startEntity(String name)
startEntity in interface LexicalHandlerpublic void warning(SAXParseException e) throws SAXException
warning in interface ErrorHandlerSAXExceptionpublic void error(SAXParseException e) throws SAXException
error in interface ErrorHandlerSAXExceptionpublic void fatalError(SAXParseException e) throws SAXException
fatalError in interface ErrorHandlerSAXExceptionpublic boolean lookaheadCharacters()
SAXEventStreamlookaheadCharacters in interface SAXEventStreampublic boolean lookaheadStartElement(NamespaceName name)
SAXEventStreamlookaheadStartElement in interface SAXEventStreampublic boolean lookaheadStartElement(String qname)
SAXEventStreamlookaheadStartElement in interface SAXEventStreampublic boolean lookaheadStartElement()
SAXEventStreamlookaheadStartElement in interface SAXEventStreampublic Attributes matchStartElement(NamespaceName name) throws SAXEventStream.MatchException
SAXEventStreammatchStartElement in interface SAXEventStreamSAXEventStream.MatchExceptionpublic Attributes matchStartElement(String qname) throws SAXEventStream.MatchException
SAXEventStreammatchStartElement in interface SAXEventStreamSAXEventStream.MatchExceptionpublic boolean lookaheadEndElement(NamespaceName name)
SAXEventStreamlookaheadEndElement in interface SAXEventStreampublic boolean lookaheadEndElement(String qname)
SAXEventStreamlookaheadEndElement in interface SAXEventStreampublic boolean lookaheadEndElement()
SAXEventStreamlookaheadEndElement in interface SAXEventStreampublic void matchEndElement(NamespaceName name) throws SAXEventStream.MatchException
SAXEventStreammatchEndElement in interface SAXEventStreamSAXEventStream.MatchExceptionpublic void matchEndElement(String name) throws SAXEventStream.MatchException
SAXEventStreammatchEndElement in interface SAXEventStreamSAXEventStream.MatchExceptionpublic boolean lookaheadEndDocument()
SAXEventStreamlookaheadEndDocument in interface SAXEventStreampublic void matchEndDocument()
                      throws SAXEventStream.MatchException
SAXEventStreammatchEndDocument in interface SAXEventStreamSAXEventStream.MatchExceptionpublic String consumeCharacters()
SAXEventStreamconsumeCharacters in interface SAXEventStreampublic Attributes getAttributes()
public String getNamespaceURI()
SAXEventStreamgetNamespaceURI in interface SAXEventStreampublic String getLocalName()
SAXEventStreamgetLocalName in interface SAXEventStreampublic String getQualifiedName()
SAXEventStreamgetQualifiedName in interface SAXEventStreampublic NamespaceName getNamespaceName()
SAXEventStreamgetNamespaceName in interface SAXEventStreampublic final void consume()
lookahead().
  Afterwards, lookahead() may may block again.
  GLO OUT consumedEtherealsconsume in interface SAXEventStreampublic void consumedEthereals(SAXEventStream.EtherealMatcher matcher)
consumedEthereals in interface SAXEventStreampublic Location<XMLDocumentIdentifier> matchedEtherealLocation()
matchedEtherealLocation in interface SAXEventStream@Opt public @Opt XMLDocumentIdentifier getDocumentId()
public Location<XMLDocumentIdentifier> getLocation()
getLocation in interface SAXEventStreampublic String headToString()
SAXEventStreamheadToString in interface SAXEventStreampublic void drainTo(ContentHandler drain) throws SAXException
SAXExceptionsee also the complete user documentation .