| |
|
| java.lang.Object org.gomba.utils.xml.ObjectXMLReader
ObjectXMLReader | abstract public class ObjectXMLReader implements XMLReader(Code) | | This class implements the SAX XMLReader interface and adds a new
parse method accepting an ObjectInputSource .
This is useful to serialize arbitrary Java objects to XML on the fly. This is
done by extending this class and overriding the parse method.
Once you get the referece to your custom Object by calling
ObjectInputSource.getObject() , you can play with the
ContentHandler and generate the SAX events according to your
object model.
author: Flavio Tordini version: $Id: ObjectXMLReader.java,v 1.3 2004/09/16 09:23:17 flaviotordini Exp $ See Also: ObjectInputSource See Also: Generating
* XML from an Arbitrary Data Structure See Also: The SAX Project |
|
|
|