Modello SAX Plugin

Modello SAX Plugin generates SAX writers based on SAX APIs, plus reader delegates to be able to read multiple model versions.

jackson-writer

sax-writer generator creates my.model.package.io.sax.ModelNameSAXWriter class with following public methods:

  • public void write( OutputStream output, RootClass root )
        throws SAXException, TransformerException
  • public void write( Writer writer, RootClass root )
        throws SAXException, TransformerException, UnsupportedEncodingException
  • public void write( org.xml.sax.ContentHandler, RootClass root )
        throws SAXException
    (this method will take care to open/close the XML document)
  • public void write( org.xml.sax.ContentHandler, RootClass root, boolean startDocument )
        throws SAXException
    (this method will take care to open/close the XML document depending on the startDocument flag)