|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oddjob.arooa.ArooaHandler
org.oddjob.arooa.handlers.XmlHandler
This handler converts the events back into XML.
| Constructor Summary | |
XmlHandler(java.io.OutputStream out)
Constructor. |
|
| Method Summary | |
void |
characters(char[] buf,
int start,
int count,
ArooaContext context)
Handles text within an element. |
void |
onEndElement(java.lang.String uri,
java.lang.String tag,
ArooaContext context)
Called when this element and all elements nested into it have been handled (i.e. |
ArooaHandler |
onStartChild(java.lang.String uri,
java.lang.String tag,
java.lang.String qname,
org.xml.sax.Attributes attrs,
ArooaContext context)
Handles the start of an element. |
void |
onStartElement(java.lang.String uri,
java.lang.String tag,
java.lang.String qname,
org.xml.sax.Attributes attrs,
ArooaContext context)
Handles the start of an element. |
| Methods inherited from class org.oddjob.arooa.ArooaHandler |
checkNamespace, onEndChild |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XmlHandler(java.io.OutputStream out)
out - The Output stream the XML is to be written to.| Method Detail |
public void onStartElement(java.lang.String uri,
java.lang.String tag,
java.lang.String qname,
org.xml.sax.Attributes attrs,
ArooaContext context)
ArooaHandler
onStartElement in class ArooaHandleruri - the namespace URI for the tagtag - The name of the element being started.
Will not be null.qname - The qualified name of the element.attrs - Attributes of the element being started.
Will not be null.context - The context that this element is in.
public ArooaHandler onStartChild(java.lang.String uri,
java.lang.String tag,
java.lang.String qname,
org.xml.sax.Attributes attrs,
ArooaContext context)
ArooaHandler
onStartChild in class ArooaHandleruri - The namespace uri for this element.tag - The name of the element being started.
Will not be null.qname - The qualified name for this element.attrs - Attributes of the element being started.
Will not be null.context - The current context.
public void onEndElement(java.lang.String uri,
java.lang.String tag,
ArooaContext context)
ArooaHandler
onEndElement in class ArooaHandleruri - the namespace uri for this elementtag - the element namecontext - the current context
public void characters(char[] buf,
int start,
int count,
ArooaContext context)
ArooaHandler
characters in class ArooaHandlerbuf - A character array of the text within the element.
Will not be null.start - The start element in the array.count - The number of characters to read from the array.context - The current context.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||