public class XMLDOMWriterImpl extends Object implements XMLStreamWriter
| Constructor and Description |
|---|
XMLDOMWriterImpl(DOMResult result)
Creates a new instance of XMLDOMwriterImpl
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method has no effect when called.
|
void |
flush()
This method has no effect when called.
|
NamespaceContext |
getNamespaceContext() |
String |
getPrefix(String namespaceURI) |
Object |
getProperty(String str)
Is not supported in this implementation.
|
void |
setDefaultNamespace(String uri)
Is not supported in this version of the implementation.
|
void |
setNamespaceContext(NamespaceContext namespaceContext) |
void |
setPrefix(String prefix,
String uri)
Is not supported in this version of the implementation.
|
void |
writeAttribute(String localName,
String value)
Creates a DOM Atrribute @see org.w3c.dom.Node and associates it with the current DOM element @see org.w3c.dom.Node.
|
void |
writeAttribute(String namespaceURI,
String localName,
String value)
Creates a DOM Atrribute @see org.w3c.dom.Node and associates it with the current DOM element @see org.w3c.dom.Node.
|
void |
writeAttribute(String prefix,
String namespaceURI,
String localName,
String value)
Creates a DOM Atrribute @see org.w3c.dom.Node and associates it with the current DOM element @see org.w3c.dom.Node.
|
void |
writeCData(String data)
Creates a CDATA object @see org.w3c.dom.CDATASection.
|
void |
writeCharacters(char[] values,
int param,
int param2)
Creates a character object @see org.w3c.dom.Text and appends it to the current
element in the DOM tree.
|
void |
writeCharacters(String charData)
Creates a character object @see org.w3c.dom.Text and appends it to the current
element in the DOM tree.
|
void |
writeComment(String str)
Creates a Comment object @see org.w3c.dom.Comment and appends it to the current
element in the DOM tree.
|
void |
writeDefaultNamespace(String namespaceURI)
Creates a DOM attribute and adds it to the current element in the DOM tree.
|
void |
writeDTD(String str)
This method is not supported in this implementation.
|
void |
writeEmptyElement(String localName)
creates a DOM Element and appends it to the current element in the tree.
|
void |
writeEmptyElement(String namespaceURI,
String localName)
creates a DOM Element and appends it to the current element in the tree.
|
void |
writeEmptyElement(String prefix,
String localName,
String namespaceURI)
creates a DOM Element and appends it to the current element in the tree.
|
void |
writeEndDocument()
Will reset current Node pointer maintained by the implementation.
|
void |
writeEndElement()
Internal current Node pointer will point to the parent of the current Node.
|
void |
writeEntityRef(String name)
Is not supported in this implementation.
|
void |
writeNamespace(String prefix,
String namespaceURI)
creates a namespace attribute and will associate it with the current element in
the DOM tree.
|
void |
writeProcessingInstruction(String target)
is not supported in this release.
|
void |
writeProcessingInstruction(String target,
String data)
is not supported in this release.
|
void |
writeStartDocument()
will set version on the Document object when the DOM Node passed to this implementation
supports DOM Level3 API's.
|
void |
writeStartDocument(String version)
will set version on the Document object when the DOM Node passed to this implementation
supports DOM Level3 API's.
|
void |
writeStartDocument(String encoding,
String version)
will set version on the Document object when the DOM Node passed to this implementation
supports DOM Level3 API's.
|
void |
writeStartElement(String localName)
creates a DOM Element and appends it to the current element in the tree.
|
void |
writeStartElement(String namespaceURI,
String localName)
creates a DOM Element and appends it to the current element in the tree.
|
void |
writeStartElement(String prefix,
String localName,
String namespaceURI)
creates a DOM Element and appends it to the current element in the tree.
|
public XMLDOMWriterImpl(DOMResult result)
result - DOMResult object @javax.xml.transform.dom.DOMResultpublic void close()
throws XMLStreamException
close in interface XMLStreamWriterXMLStreamExceptionpublic void flush()
throws XMLStreamException
flush in interface XMLStreamWriterXMLStreamExceptionpublic NamespaceContext getNamespaceContext()
getNamespaceContext in interface XMLStreamWriterpublic String getPrefix(String namespaceURI) throws XMLStreamException
getPrefix in interface XMLStreamWriternamespaceURI - XMLStreamExceptionpublic Object getProperty(String str) throws IllegalArgumentException
getProperty in interface XMLStreamWriterstr - IllegalArgumentExceptionpublic void setDefaultNamespace(String uri) throws XMLStreamException
setDefaultNamespace in interface XMLStreamWriteruri - XMLStreamExceptionpublic void setNamespaceContext(NamespaceContext namespaceContext) throws XMLStreamException
setNamespaceContext in interface XMLStreamWriternamespaceContext - XMLStreamExceptionpublic void setPrefix(String prefix, String uri) throws XMLStreamException
setPrefix in interface XMLStreamWriterprefix - uri - XMLStreamExceptionpublic void writeAttribute(String localName, String value) throws XMLStreamException
writeAttribute in interface XMLStreamWriterlocalName - value - XMLStreamExceptionpublic void writeAttribute(String namespaceURI, String localName, String value) throws XMLStreamException
writeAttribute in interface XMLStreamWriternamespaceURI - localName - value - XMLStreamExceptionpublic void writeAttribute(String prefix, String namespaceURI, String localName, String value) throws XMLStreamException
writeAttribute in interface XMLStreamWriterprefix - namespaceURI - localName - value - XMLStreamExceptionpublic void writeCData(String data) throws XMLStreamException
writeCData in interface XMLStreamWriterdata - XMLStreamExceptionpublic void writeCharacters(String charData) throws XMLStreamException
writeCharacters in interface XMLStreamWritercharData - XMLStreamExceptionpublic void writeCharacters(char[] values,
int param,
int param2)
throws XMLStreamException
writeCharacters in interface XMLStreamWritervalues - param - param2 - XMLStreamExceptionpublic void writeComment(String str) throws XMLStreamException
writeComment in interface XMLStreamWriterstr - XMLStreamExceptionpublic void writeDTD(String str) throws XMLStreamException
writeDTD in interface XMLStreamWriterstr - XMLStreamExceptionpublic void writeDefaultNamespace(String namespaceURI) throws XMLStreamException
writeDefaultNamespace in interface XMLStreamWriternamespaceURI - XMLStreamExceptionpublic void writeEmptyElement(String localName) throws XMLStreamException
writeEmptyElement in interface XMLStreamWriterlocalName - XMLStreamExceptionpublic void writeEmptyElement(String namespaceURI, String localName) throws XMLStreamException
writeEmptyElement in interface XMLStreamWriternamespaceURI - localName - XMLStreamExceptionpublic void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException
writeEmptyElement in interface XMLStreamWriterprefix - localName - namespaceURI - XMLStreamExceptionpublic void writeEndDocument()
throws XMLStreamException
writeEndDocument in interface XMLStreamWriterXMLStreamExceptionpublic void writeEndElement()
throws XMLStreamException
writeEndElement in interface XMLStreamWriterXMLStreamExceptionpublic void writeEntityRef(String name) throws XMLStreamException
writeEntityRef in interface XMLStreamWritername - XMLStreamExceptionpublic void writeNamespace(String prefix, String namespaceURI) throws XMLStreamException
writeNamespace in interface XMLStreamWriterprefix - namespaceURI - XMLStreamExceptionpublic void writeProcessingInstruction(String target) throws XMLStreamException
writeProcessingInstruction in interface XMLStreamWritertarget - XMLStreamExceptionpublic void writeProcessingInstruction(String target, String data) throws XMLStreamException
writeProcessingInstruction in interface XMLStreamWritertarget - data - XMLStreamExceptionpublic void writeStartDocument()
throws XMLStreamException
writeStartDocument in interface XMLStreamWriterXMLStreamExceptionpublic void writeStartDocument(String version) throws XMLStreamException
writeStartDocument in interface XMLStreamWriterversion - XMLStreamExceptionpublic void writeStartDocument(String encoding, String version) throws XMLStreamException
writeStartDocument in interface XMLStreamWriterencoding - version - XMLStreamExceptionpublic void writeStartElement(String localName) throws XMLStreamException
writeStartElement in interface XMLStreamWriterlocalName - XMLStreamExceptionpublic void writeStartElement(String namespaceURI, String localName) throws XMLStreamException
writeStartElement in interface XMLStreamWriternamespaceURI - localName - XMLStreamExceptionpublic void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException
writeStartElement in interface XMLStreamWriterprefix - localName - namespaceURI - XMLStreamExceptionCopyright © 2018–2021 mhoffrogge. All rights reserved.