|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.exolab.adaptx.xslt.handlers.DefaultHandler
The default implementation of ResultHandler. It uses the Apache Serializer classes written by my friend and colleague Assaf Arkin.
| Constructor Summary | |
DefaultHandler(java.io.OutputStream out)
Creates a new DefaultHandler |
|
DefaultHandler(java.io.OutputStream out,
OutputFormat format)
Creates a new DefaultHandler |
|
DefaultHandler(java.io.Writer out)
Creates a new DefaultHandler |
|
DefaultHandler(java.io.Writer out,
OutputFormat format)
Creates a new DefaultHandler |
|
| 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 start of element |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
ContentHandler#endElement |
void |
endPrefixMapping(java.lang.String prefix)
Signals to end the namespace prefix mapping |
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 |
setOutputFormat(OutputFormat format)
Sets the output format information for Formatters that perform serialization. |
void |
skippedEntity(java.lang.String name)
Signals that an entity was skipped by the parser |
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 |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
ContentHandler#startElement |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Signals to start the namespace - prefix mapping |
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 DefaultHandler(java.io.Writer out)
public DefaultHandler(java.io.OutputStream out)
public DefaultHandler(java.io.Writer out,
OutputFormat format)
public DefaultHandler(java.io.OutputStream out,
OutputFormat format)
| Method Detail |
public void cdata(char[] chars,
int start,
int length)
cdata in interface ResultHandlerchars - 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
public void characters(char[] chars,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlerchars - 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.SAXExceptionpublic 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.ContentHandlerorg.xml.sax.SAXException
public void endElement(java.lang.String name)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.DocumentHandlername - the name of the element
org.xml.sax.SAXException
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
ContentHandler#endElement
Signals the end of an element
endElement in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in interface org.xml.sax.ContentHandlerprefix - the namespace prefix
org.xml.sax.SAXExceptionpublic void entityReference(java.lang.String name)
entityReference in interface ResultHandlername - the name of the entity reference
public void ignorableWhitespace(char[] chars,
int start,
int length)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.ContentHandlerchars - 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.ContentHandlertarget - the target of the processing instructiondata - the content of the processing instruction
org.xml.sax.SAXExceptionpublic void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlerlocator - the Locator used by this DocumentHandlerpublic void setIndentSize(short indentSize)
setIndentSize in interface ResultHandlerindentSize - the number of characters to indentpublic void setOutputFormat(OutputFormat format)
setOutputFormat in interface ResultHandlerformat - the OutputFormat used to specify properties
during serialization
public void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlername - the skipped entity's name
org.xml.sax.SAXException
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerorg.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.DocumentHandlername - the name of the elementatts - the AttributeList containing the associated
attributes for the element
org.xml.sax.SAXException
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
ContentHandler#startElement
Signals the start of element
startElement in interface org.xml.sax.ContentHandleratts - the AttributeList containing the associated
attributes for the element
org.xml.sax.SAXException
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in interface org.xml.sax.ContentHandlerprefix - the namespace prefix to mapuri - the namespace URI
org.xml.sax.SAXException
public void unescapedCharacters(char[] chars,
int start,
int length)
unescapedCharacters in interface ResultHandlerchars - 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 | ||||||||