|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.skaringa.javaxml.handler.AbstractDocumentOutputHandler
com.skaringa.javaxml.handler.sax.SAXOutputHandler
public final class SAXOutputHandler
A concrete DocumentOutputHandlerInterface. It writes the output events to a SAX content handler. It is used for serialization of Java objects into XML documents.
Constructor Summary | |
---|---|
SAXOutputHandler(org.xml.sax.ContentHandler ch)
Construct a new SAXOutputHandler. |
Method Summary | |
---|---|
void |
appendText(java.lang.String text)
Append text to the current element. |
void |
endDocument()
End the document. |
void |
endElement(java.lang.String name)
End the current element. |
void |
startDocument()
Start a new document. |
void |
startElement(java.lang.String name)
Start a new element without attributes at the current element. |
void |
startElement(java.lang.String name,
org.xml.sax.Attributes attrs)
Start a new element at the current element. |
Methods inherited from class com.skaringa.javaxml.handler.AbstractDocumentOutputHandler |
---|
appendNamespaceDeclarations, getProperties, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.skaringa.javaxml.handler.DocumentOutputHandlerInterface |
---|
getProperties, setProperties |
Constructor Detail |
---|
public SAXOutputHandler(org.xml.sax.ContentHandler ch)
ch
- The SAX content handler which gets the output events.Method Detail |
---|
public void startDocument() throws SerializerException
DocumentOutputHandlerInterface
startDocument
in interface DocumentOutputHandlerInterface
SerializerException
- If the operation failes.DocumentOutputHandlerInterface.startDocument()
public void endDocument() throws SerializerException
DocumentOutputHandlerInterface
endDocument
in interface DocumentOutputHandlerInterface
SerializerException
- If the operation failes.DocumentOutputHandlerInterface.endDocument()
public void startElement(java.lang.String name, org.xml.sax.Attributes attrs) throws SerializerException
DocumentOutputHandlerInterface
startElement
in interface DocumentOutputHandlerInterface
name
- The name of the element.attrs
- The attributes of the element.
SerializerException
- If the operation failes.DocumentOutputHandlerInterface.startElement(String, Attributes)
public void startElement(java.lang.String name) throws SerializerException
DocumentOutputHandlerInterface
startElement
in interface DocumentOutputHandlerInterface
name
- The name of the element.
SerializerException
- If the operation failes.DocumentOutputHandlerInterface.startElement(String)
public void appendText(java.lang.String text) throws SerializerException
DocumentOutputHandlerInterface
appendText
in interface DocumentOutputHandlerInterface
text
- The text to append.
SerializerException
- If the operation failes.DocumentOutputHandlerInterface.appendText(String)
public void endElement(java.lang.String name) throws SerializerException
DocumentOutputHandlerInterface
endElement
in interface DocumentOutputHandlerInterface
name
- The name of the element.
SerializerException
- If the operation failes.DocumentOutputHandlerInterface.endElement(String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |