Class FlatXmlUnmarshaller

  • All Implemented Interfaces:
    XmlUnmarshaller

    public class FlatXmlUnmarshaller
    extends java.lang.Object
    implements XmlUnmarshaller
    XML unmarshaller to load a flat object.
    Author:
    Daniel Sagenschneider
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected static class  FlatXmlUnmarshaller.HandlerImpl
      Handler to load XML values onto target object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void unmarshall​(java.io.InputStream xml, java.lang.Object target)
      Unmarshalls the input xml onto the input target object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • parser

        protected final javax.xml.parsers.SAXParser parser
        Parses the XML.
    • Method Detail

      • unmarshall

        public void unmarshall​(java.io.InputStream xml,
                               java.lang.Object target)
                        throws XmlMarshallException
        Description copied from interface: XmlUnmarshaller
        Unmarshalls the input xml onto the input target object.
        Specified by:
        unmarshall in interface XmlUnmarshaller
        Parameters:
        xml - XML to unmarshall.
        target - Target object to load XML data onto.
        Throws:
        XmlMarshallException - Should fail to load XML data onto the target object.