Class SMOutputDocument


  • public class SMOutputDocument
    extends SMRootFragment
    Output class that models a full XML document, with xml declaration.
    • Constructor Detail

      • SMOutputDocument

        protected SMOutputDocument​(SMOutputContext ctxt)
                            throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • SMOutputDocument

        protected SMOutputDocument​(SMOutputContext ctxt,
                                   java.lang.String version,
                                   java.lang.String encoding)
                            throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • SMOutputDocument

        protected SMOutputDocument​(SMOutputContext ctxt,
                                   java.lang.String version,
                                   java.lang.String encoding,
                                   boolean standalone)
                            throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
    • Method Detail

      • addDoctypeDecl

        public void addDoctypeDecl​(java.lang.String rootName,
                                   java.lang.String systemId,
                                   java.lang.String publicId)
                            throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • addDoctypeDecl

        public void addDoctypeDecl​(java.lang.String rootName,
                                   java.lang.String systemId,
                                   java.lang.String publicId,
                                   java.lang.String intSubset)
                            throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • closeRoot

        public void closeRoot()
                       throws javax.xml.stream.XMLStreamException
        Method that HAS to be called when all additions have been done via StaxMate API. Since it is possible that the underlying stream writer may be buffering some parts, it needs to be informed of the closure.
        Overrides:
        closeRoot in class SMRootFragment
        Throws:
        javax.xml.stream.XMLStreamException