org.exolab.adaptx.xslt
Interface ResultHandler

All Superinterfaces:
org.xml.sax.DocumentHandler
All Known Implementing Classes:
DefaultHandler, DOMBuilder, ResultHandlerAdapter, ResultHandlerAdapter2, XPNBuilder

public interface ResultHandler
extends org.xml.sax.DocumentHandler

An interface for processing XSLT result trees. This class is a combination of a SAX 1.0 document handler plus some extra methods for dealing with CDATA comments and entity references. This should be upgraded to a SAX 2.0 Lexical Handler, when they become more prominent

Version:
$Revision: 3633 $ $Date: 2003-03-01 02:38:44 -0500 (Sat, 01 Mar 2003) $
Author:
Keith Visco

Method Summary
 void cdata(char[] chars, int start, int length)
          Signals to receive CDATA characters
 void comment(java.lang.String data)
          Signals to recieve a comment
 void entityReference(java.lang.String name)
          Signals to recieve an entity reference with the given name
 void setIndentSize(short indentSize)
          Sets the indent size for all formatters that perform serialization, in which indentation is applicable.
 void setOutputFormat(OutputFormat format)
          Sets the output format information for Formatters that perform serialization.
 void unescapedCharacters(char[] chars, int start, int length)
          Signals to receive characters which should not be escaped
 
Methods inherited from interface org.xml.sax.DocumentHandler
characters, endDocument, endElement, ignorableWhitespace, processingInstruction, setDocumentLocator, startDocument, startElement
 

Method Detail

cdata

void cdata(char[] chars,
           int start,
           int length)
Signals to receive CDATA characters

Parameters:
chars - the character array containing the characters to receive
start - the index into the character array to start receiving characters at
length - the number of characters to recieve

comment

void comment(java.lang.String data)
Signals to recieve a comment

Parameters:
data, - the content of the comment

entityReference

void entityReference(java.lang.String name)
Signals to recieve an entity reference with the given name

Parameters:
name - the name of the entity reference

setIndentSize

void setIndentSize(short indentSize)
Sets the indent size for all formatters that perform serialization, in which indentation is applicable.

Parameters:
indentSize - the number of characters to indent

setOutputFormat

void setOutputFormat(OutputFormat format)
Sets the output format information for Formatters that perform serialization.

Parameters:
format - the OutputFormat used to specify properties during serialization

unescapedCharacters

void unescapedCharacters(char[] chars,
                         int start,
                         int length)
Signals to receive characters which should not be escaped

Parameters:
chars - the character array containing the characters to receive
start - the index into the character array to start receiving characters at
length - the number of characters to recieve