|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.adaptx.xslt.handlers.ResultHandlerAdapter2
public class ResultHandlerAdapter2
A simple implemtation of ResultHandler which acts as an adapter for a SAX ContentHandler.
Constructor Summary | |
---|---|
ResultHandlerAdapter2(org.xml.sax.ContentHandler handler)
Creates a new ResultHandlerAdapter2 with the given ContentHandler |
Method Summary | |
---|---|
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(java.lang.String data)
Signals to recieve a comment |
void |
endDocument()
Signals the end of the document |
void |
endElement(java.lang.String name)
Signals the end of element |
void |
entityReference(java.lang.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(java.lang.String target,
java.lang.String data)
Signals to recieve a processing instruction |
void |
setDocumentLocator(org.xml.sax.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(org.xml.sax.ext.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(java.lang.String name,
org.xml.sax.AttributeList atts)
Signals the start of element |
void |
unescapedCharacters(char[] chars,
int start,
int length)
Signals to receive characters which should not be escaped |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultHandlerAdapter2(org.xml.sax.ContentHandler handler)
handler
- the ContentHandler to "adapt".Method Detail |
---|
public void setLexicalHandler(org.xml.sax.ext.LexicalHandler lexHandler)
lexHandler
- the LexicalHandler. May be null.public void cdata(char[] chars, int start, int length)
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 recievepublic void characters(char[] chars, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.DocumentHandler
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
org.xml.sax.SAXException
public void comment(java.lang.String data)
ResultHandler
comment
in interface ResultHandler
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
public void endElement(java.lang.String name) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.DocumentHandler
name
- the qualified name of the element
org.xml.sax.SAXException
public void entityReference(java.lang.String name)
entityReference
in interface ResultHandler
name
- the name of the entity referencepublic void ignorableWhitespace(char[] chars, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.DocumentHandler
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
org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.DocumentHandler
target
- the target of the processing instructiondata
- the content of the processing instruction
org.xml.sax.SAXException
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.DocumentHandler
locator
- the Locator used by this DocumentHandlerpublic void setIndentSize(short indentSize)
setIndentSize
in interface ResultHandler
indentSize
- the number of characters to indentpublic void setOutputFormat(OutputFormat format)
setOutputFormat
in interface ResultHandler
format
- the OutputFormat used to specify properties
during serializationpublic void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
public void startElement(java.lang.String name, org.xml.sax.AttributeList atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.DocumentHandler
name
- the name of the elementatts
- the AttributeList containing the associated
attributes for the element
org.xml.sax.SAXException
public void unescapedCharacters(char[] chars, int start, int length)
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
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |