public class BuildingStreamWriterImpl extends StreamWriterToReceiver implements BuildingStreamWriter
XMLStreamWriter
, allowing
a document to be constructed by means of a series of XMLStreamWriter method calls such
as writeStartElement(), writeAttribute(), writeCharacters(), and writeEndElement().
The detailed way in which this class is packaged is carefully designed to ensure that
if the functionality is not used, the DocumentBuilder
is still usable under
JDK 1.5 (which does not include javax.xml.stream interfaces).
Constructor and Description |
---|
BuildingStreamWriterImpl(Receiver receiver,
Builder builder) |
Modifier and Type | Method and Description |
---|---|
XdmNode |
getDocumentNode()
After building the document by writing a sequence of events, retrieve the root node
of the constructed document tree
|
close, flush, getNamespaceContext, getPrefix, getProperty, isCheckValues, isInventPrefixes, setCheckValues, setDefaultNamespace, setInventPrefixes, setNamespaceContext, setPrefix, writeAttribute, writeAttribute, writeAttribute, writeCData, writeCharacters, writeCharacters, writeComment, writeDefaultNamespace, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEndElement, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction, writeStartDocument, writeStartDocument, writeStartDocument, writeStartElement, writeStartElement, writeStartElement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isCheckValues, isInventPrefixes, setCheckValues, setInventPrefixes
close, flush, getNamespaceContext, getPrefix, getProperty, setDefaultNamespace, setNamespaceContext, setPrefix, writeAttribute, writeAttribute, writeAttribute, writeCData, writeCharacters, writeCharacters, writeComment, writeDefaultNamespace, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEndElement, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction, writeStartDocument, writeStartDocument, writeStartDocument, writeStartElement, writeStartElement, writeStartElement
public XdmNode getDocumentNode() throws SaxonApiException
BuildingStreamWriter
getDocumentNode
in interface BuildingStreamWriter
XMLStreamWriter.writeEndDocument()
) that constructs the tree.SaxonApiException
- if any failure occursCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.