Class SMOutputDocument
java.lang.Object
org.codehaus.staxmate.out.SMOutputtable
org.codehaus.staxmate.out.SMOutputContainer
org.codehaus.staxmate.out.SMRootFragment
org.codehaus.staxmate.out.SMOutputDocument
Output class that models a full XML document, with xml declaration.
-
Field Summary
Fields inherited from class SMRootFragment
_activeFields inherited from class SMOutputContainer
_context, _firstChild, _lastChild, _parentFields inherited from class SMOutputtable
_next -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedSMOutputDocument(SMOutputContext ctxt, String version, String encoding) protectedSMOutputDocument(SMOutputContext ctxt, String version, String encoding, boolean standalone) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDoctypeDecl(String rootName, String systemId, String publicId) voidaddDoctypeDecl(String rootName, String systemId, String publicId, String intSubset) voidMethod that HAS to be called when all additions have been done via StaxMate API.Methods inherited from class SMRootFragment
_canOutputNewChild, _childReleased, _forceOutput, _output, closeRootAndWriter, getPathMethods inherited from class SMOutputContainer
_closeAllButLastChild, _closeAndOutputChildren, _forceChildOutput, _linkNewChild, _throwClosed, _throwRelinking, _verifyNamespaceArg, addAndReleaseBuffered, addBuffered, addCData, addCData, addCharacters, addCharacters, addComment, addElement, addElement, addElementWithCharacters, addEntityRef, addProcessingInstruction, addValue, addValue, addValue, addValue, addValue, addValue, createBufferedElement, createBufferedFragment, getContext, getNamespace, getNamespace, getParent, getPath, setIndentationMethods inherited from class SMOutputtable
_linkNext, getNext
-
Constructor Details
-
SMOutputDocument
- Throws:
XMLStreamException
-
SMOutputDocument
protected SMOutputDocument(SMOutputContext ctxt, String version, String encoding) throws XMLStreamException - Throws:
XMLStreamException
-
SMOutputDocument
protected SMOutputDocument(SMOutputContext ctxt, String version, String encoding, boolean standalone) throws XMLStreamException - Throws:
XMLStreamException
-
-
Method Details
-
addDoctypeDecl
public void addDoctypeDecl(String rootName, String systemId, String publicId) throws XMLStreamException - Throws:
XMLStreamException
-
addDoctypeDecl
public void addDoctypeDecl(String rootName, String systemId, String publicId, String intSubset) throws XMLStreamException - Throws:
XMLStreamException
-
closeRoot
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:
closeRootin classSMRootFragment- Throws:
XMLStreamException
-