Package org.codehaus.staxmate.out
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
-
public class SMOutputDocument extends SMRootFragment
Output class that models a full XML document, with xml declaration.
-
-
Field Summary
-
Fields inherited from class org.codehaus.staxmate.out.SMRootFragment
_active
-
Fields inherited from class org.codehaus.staxmate.out.SMOutputContainer
_context, _firstChild, _lastChild, _parent
-
Fields inherited from class org.codehaus.staxmate.out.SMOutputtable
_next
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSMOutputDocument(SMOutputContext ctxt)protectedSMOutputDocument(SMOutputContext ctxt, java.lang.String version, java.lang.String encoding)protectedSMOutputDocument(SMOutputContext ctxt, java.lang.String version, java.lang.String encoding, boolean standalone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDoctypeDecl(java.lang.String rootName, java.lang.String systemId, java.lang.String publicId)voidaddDoctypeDecl(java.lang.String rootName, java.lang.String systemId, java.lang.String publicId, java.lang.String intSubset)voidcloseRoot()Method that HAS to be called when all additions have been done via StaxMate API.-
Methods inherited from class org.codehaus.staxmate.out.SMRootFragment
_canOutputNewChild, _childReleased, _forceOutput, _output, closeRootAndWriter, getPath
-
Methods inherited from class org.codehaus.staxmate.out.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, setIndentation
-
Methods inherited from class org.codehaus.staxmate.out.SMOutputtable
_linkNext, getNext
-
-
-
-
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.XMLStreamExceptionMethod 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:
javax.xml.stream.XMLStreamException
-
-