org.exist.util.serializer
Interface Receiver

All Known Subinterfaces:
MatchListener
All Known Implementing Classes:
AbstractMatchListener, DocumentBuilderReceiver, FTMatchListener, ReceiverToSAX, SAXSerializer, XIncludeFilter

public interface Receiver

A receiver is similar to the SAX content handler and lexical handler interfaces, but uses some higher level types as arguments. For example, element names are internally stored as QName objects, so startElement and endElement expect a QName. This way, we avoid copying objects.

Author:
wolf

Field Summary
static QName MATCH_ELEMENT
           
 
Method Summary
 void attribute(QName qname, String value)
           
 void cdataSection(char[] ch, int start, int len)
           
 void characters(CharSequence seq)
           
 void comment(char[] ch, int start, int length)
           
 void documentType(String name, String publicId, String systemId)
           
 void endDocument()
           
 void endElement(QName qname)
           
 void endPrefixMapping(String prefix)
           
 Document getDocument()
           
 void highlightText(CharSequence seq)
           
 void processingInstruction(String target, String data)
           
 void setCurrentNode(StoredNode node)
           
 void startDocument()
           
 void startElement(QName qname, AttrList attribs)
           
 void startPrefixMapping(String prefix, String namespaceURI)
           
 

Field Detail

MATCH_ELEMENT

static final QName MATCH_ELEMENT
Method Detail

startDocument

void startDocument()
                   throws SAXException
Throws:
SAXException

endDocument

void endDocument()
                 throws SAXException
Throws:
SAXException

startPrefixMapping

void startPrefixMapping(String prefix,
                        String namespaceURI)
                        throws SAXException
Throws:
SAXException

endPrefixMapping

void endPrefixMapping(String prefix)
                      throws SAXException
Throws:
SAXException

startElement

void startElement(QName qname,
                  AttrList attribs)
                  throws SAXException
Throws:
SAXException

endElement

void endElement(QName qname)
                throws SAXException
Throws:
SAXException

characters

void characters(CharSequence seq)
                throws SAXException
Throws:
SAXException

attribute

void attribute(QName qname,
               String value)
               throws SAXException
Throws:
SAXException

comment

void comment(char[] ch,
             int start,
             int length)
             throws SAXException
Throws:
SAXException

cdataSection

void cdataSection(char[] ch,
                  int start,
                  int len)
                  throws SAXException
Throws:
SAXException

processingInstruction

void processingInstruction(String target,
                           String data)
                           throws SAXException
Throws:
SAXException

documentType

void documentType(String name,
                  String publicId,
                  String systemId)
                  throws SAXException
Throws:
SAXException

highlightText

void highlightText(CharSequence seq)
                   throws SAXException
Throws:
SAXException

setCurrentNode

void setCurrentNode(StoredNode node)

getDocument

Document getDocument()


Copyright (C) Wolfgang Meier. All rights reserved.