com.skaringa.javaxml.handler.sax
Class ObjectXMLReader

java.lang.Object
  extended by com.skaringa.javaxml.handler.sax.AbstractXMLReader
      extended by com.skaringa.javaxml.handler.sax.ObjectXMLReader
All Implemented Interfaces:
org.xml.sax.XMLReader

public final class ObjectXMLReader
extends AbstractXMLReader

A implementation of the SAX2 XMLReader interface. This class is able to parse serializable objects.


Constructor Summary
ObjectXMLReader()
          Construct an instance of ObjectXMLReader.
 
Method Summary
 void parseObject(java.lang.Object obj, java.lang.Class type, DocumentOutputHandlerInterface output)
          Parse an object and generate messages for a DocumentOutputHandler from its content.
 
Methods inherited from class com.skaringa.javaxml.handler.sax.AbstractXMLReader
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, getPropertyMap, parse, parse, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectXMLReader

public ObjectXMLReader()
                throws SerializerException
Construct an instance of ObjectXMLReader.

Throws:
SerializerException - If an implemention of identity hash map can't be found.
Method Detail

parseObject

public void parseObject(java.lang.Object obj,
                        java.lang.Class type,
                        DocumentOutputHandlerInterface output)
                 throws SerializerException
Description copied from class: AbstractXMLReader
Parse an object and generate messages for a DocumentOutputHandler from its content.

Specified by:
parseObject in class AbstractXMLReader
Parameters:
obj - The object to parse.
type - The type of the object.
output - The DocumentOutputHandler that gets the result messages.
Throws:
SerializerException - If the object can't be parsed or the DocumentOutputHandler can't handle the result messages.
See Also:
AbstractXMLReader.parseObject(Object, Class, DocumentOutputHandlerInterface)