org.exolab.adaptx.xslt.handlers
Class ResultHandlerAdapter2
java.lang.Object
org.exolab.adaptx.xslt.handlers.ResultHandlerAdapter2
- DocumentHandler, ResultHandler
public class ResultHandlerAdapter2
extends java.lang.Object
A simple implemtation of ResultHandler which acts as an
adapter for a SAX ContentHandler.
$Revision: 4779 $ $Date: 2004-09-30 04:19:31 -0400 (Thu, 30 Sep 2004) $ResultHandlerAdapter2(ContentHandler handler) - Creates a new ResultHandlerAdapter2 with the given
ContentHandler
|
void | cdata(char[] chars, int start, int length) - Signals to receive CDATA characters
|
void | characters(char[] chars, int start, int length) - Signals the start of characters
|
void | comment(String data) - Signals to recieve a comment
|
void | endDocument() - Signals the end of the document
|
void | endElement(String name) - Signals the end of element
|
void | entityReference(String name) - Signals to recieve an entity reference with the given name
|
void | ignorableWhitespace(char[] chars, int start, int length) - Signals the start of ignorable whitespace characters
|
void | processingInstruction(String target, String data) - Signals to recieve a processing instruction
|
void | setDocumentLocator(Locator locator) - Sets the document locator
|
void | setIndentSize(short indentSize) - Sets the indent size for all formatters that perform
serialization, in which indentation is applicable.
|
void | setLexicalHandler(LexicalHandler lexHandler) - Sets the given LexicalHandler to handle special events,
such as comments.
|
void | setOutputFormat(OutputFormat format) - Sets the output format information for Formatters that
perform serialization.
|
void | startDocument() - Signals the start of a document
|
void | startElement(String name, AttributeList atts) - Signals the start of element
|
void | unescapedCharacters(char[] chars, int start, int length) - Signals to receive characters which should not be escaped
|
ResultHandlerAdapter2
public ResultHandlerAdapter2(ContentHandler handler)
Creates a new ResultHandlerAdapter2 with the given
ContentHandler
handler
- the ContentHandler to "adapt".
cdata
public void cdata(char[] chars,
int start,
int length)
Signals to receive CDATA characters
- cdata in interface ResultHandler
chars
- the character array containing the characters
to receivestart
- the index into the character array to start receiving
characters atlength
- the number of characters to recieve
characters
public void characters(char[] chars,
int start,
int length)
throws org.xml.sax.SAXException
Signals the start of characters
chars
- the character array containing the characters
to receivestart
- the index into the character array to start receiving
characters atlength
- the number of characters to recieve
comment
public void comment(String data)
Signals to recieve a comment
- comment in interface ResultHandler
endDocument
public void endDocument()
throws org.xml.sax.SAXException
Signals the end of the document
endElement
public void endElement(String name)
throws org.xml.sax.SAXException
Signals the end of element
name
- the qualified name of the element
entityReference
public void entityReference(String name)
Signals to recieve an entity reference with the given name
- entityReference in interface ResultHandler
name
- the name of the entity reference
ignorableWhitespace
public void ignorableWhitespace(char[] chars,
int start,
int length)
throws org.xml.sax.SAXException
Signals the start of ignorable whitespace characters
chars
- the character array containing the characters
to receivestart
- the index into the character array to start receiving
characters atlength
- the number of characters to recieve
processingInstruction
public void processingInstruction(String target,
String data)
throws org.xml.sax.SAXException
Signals to recieve a processing instruction
target
- the target of the processing instructiondata
- the content of the processing instruction
setDocumentLocator
public void setDocumentLocator(Locator locator)
Sets the document locator
locator
- the Locator used by this DocumentHandler
setIndentSize
public void setIndentSize(short indentSize)
Sets the indent size for all formatters that perform
serialization, in which indentation is applicable.
- setIndentSize in interface ResultHandler
indentSize
- the number of characters to indent
setLexicalHandler
public void setLexicalHandler(LexicalHandler lexHandler)
Sets the given LexicalHandler to handle special events,
such as comments.
lexHandler
- the LexicalHandler. May be null.
setOutputFormat
public void setOutputFormat(OutputFormat format)
Sets the output format information for Formatters that
perform serialization.
- setOutputFormat in interface ResultHandler
format
- the OutputFormat used to specify properties
during serialization
startDocument
public void startDocument()
throws org.xml.sax.SAXException
Signals the start of a document
startElement
public void startElement(String name,
AttributeList atts)
throws org.xml.sax.SAXException
Signals the start of element
name
- the name of the elementatts
- the AttributeList containing the associated
attributes for the element
unescapedCharacters
public void unescapedCharacters(char[] chars,
int start,
int length)
Signals to receive characters which should not be escaped
- unescapedCharacters in interface ResultHandler
chars
- the character array containing the characters
to receivestart
- the index into the character array to start receiving
characters atlength
- the number of characters to recieve