Package com.sun.xml.rpc.streaming
Class XmlTreeWriter
java.lang.Object
com.sun.xml.rpc.streaming.XMLWriterBase
com.sun.xml.rpc.streaming.XmlTreeWriter
- All Implemented Interfaces:
XMLWriter
- Author:
- JAX-RPC Development Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javax.xml.soap.SOAPElementprotected Documentprotected Stackprotected NamespaceSupportprotected javax.xml.soap.SOAPElementprotected PrefixFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected javax.xml.soap.SOAPElementaddNewNode(String localName, String prefix, String uri) voidclose()Close the writer and its underlying stream.protected StringcreatePrefix(String uri) voidWrite the end tag for the current element.voidflush()Flush the writer and its underlying stream.protected StringgetKnownPrefix(String uri) Return a prefix for the given URI.Return the prefix factory in use by this writer.protected static javax.xml.soap.SOAPFactoryReturn the URI for a given prefix.protected StringvoidsetPrefixFactory(PrefixFactory factory) Set the prefix factory to be used by this writer.voidstartElement(String localName, String uri) Write the start tag for an element.voidstartElement(String localName, String uri, String prefix) Write the start tag for an element.voidwriteAttribute(String localName, String uri, String value) Write an attribute of the current element.voidwriteAttributeUnquoted(String localName, String uri, String value) Write an attribute (unquoted) of the current element.voidwriteChars(CDATA chars) Write character data within an element.voidwriteChars(String chars) Write character data within an element.voidwriteCharsUnquoted(char[] buf, int offset, int len) unsupportvoidwriteCharsUnquoted(String chars) Write character data within an element, skipping quoting.voidWrite a namespace declaration of the current element.voidwriteNamespaceDeclaration(String prefix, String uri) Write a namespace declaration of the current element.Methods inherited from class com.sun.xml.rpc.streaming.XMLWriterBase
startElement, startElement, startElement, writeAttribute, writeAttribute, writeAttributeUnquoted, writeAttributeUnquoted, writeCommentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sun.xml.rpc.streaming.XMLWriter
startElement, startElement, startElement, writeAttribute, writeAttribute, writeAttributeUnquoted, writeAttributeUnquoted, writeComment
-
Field Details
-
document
-
currentNode
protected javax.xml.soap.SOAPElement currentNode -
parentNode
protected javax.xml.soap.SOAPElement parentNode -
pfactory
-
ns
-
elementStack
-
-
Constructor Details
-
XmlTreeWriter
-
-
Method Details
-
getSoapFactory
protected static javax.xml.soap.SOAPFactory getSoapFactory() throws javax.xml.soap.SOAPException- Throws:
javax.xml.soap.SOAPException
-
startElement
Description copied from interface:XMLWriterWrite the start tag for an element.- Specified by:
startElementin interfaceXMLWriter- See Also:
-
createPrefix
-
getKnownPrefix
-
addNewNode
protected javax.xml.soap.SOAPElement addNewNode(String localName, String prefix, String uri) throws javax.xml.soap.SOAPException - Throws:
javax.xml.soap.SOAPException
-
startElement
Description copied from interface:XMLWriterWrite the start tag for an element.- Specified by:
startElementin interfaceXMLWriter- See Also:
-
writeAttribute
Description copied from interface:XMLWriterWrite an attribute of the current element.- Specified by:
writeAttributein interfaceXMLWriter- See Also:
-
quote
-
writeAttributeUnquoted
Description copied from interface:XMLWriterWrite an attribute (unquoted) of the current element.- Specified by:
writeAttributeUnquotedin interfaceXMLWriter- See Also:
-
writeNamespaceDeclaration
Description copied from interface:XMLWriterWrite a namespace declaration of the current element.- Specified by:
writeNamespaceDeclarationin interfaceXMLWriter- See Also:
-
writeNamespaceDeclaration
Description copied from interface:XMLWriterWrite a namespace declaration of the current element. The prefix name will be generated by the PrefixFactory currently configured for this writer.- Specified by:
writeNamespaceDeclarationin interfaceXMLWriter- See Also:
-
writeChars
Description copied from interface:XMLWriterWrite character data within an element.- Specified by:
writeCharsin interfaceXMLWriter- Specified by:
writeCharsin classXMLWriterBase- See Also:
-
writeCharsUnquoted
Description copied from interface:XMLWriterWrite character data within an element, skipping quoting.- Specified by:
writeCharsUnquotedin interfaceXMLWriter- See Also:
-
writeCharsUnquoted
public void writeCharsUnquoted(char[] buf, int offset, int len) unsupport- Specified by:
writeCharsUnquotedin interfaceXMLWriter
-
endElement
public void endElement()Description copied from interface:XMLWriterWrite the end tag for the current element.- Specified by:
endElementin interfaceXMLWriter- See Also:
-
getPrefixFactory
Description copied from interface:XMLWriterReturn the prefix factory in use by this writer.- Specified by:
getPrefixFactoryin interfaceXMLWriter- See Also:
-
setPrefixFactory
Description copied from interface:XMLWriterSet the prefix factory to be used by this writer.- Specified by:
setPrefixFactoryin interfaceXMLWriter- See Also:
-
getURI
Description copied from interface:XMLWriterReturn the URI for a given prefix. If the prefix is undeclared, return null. -
getPrefix
Description copied from interface:XMLWriterReturn a prefix for the given URI.If no prefix for the given URI is in scope, return null.
-
flush
public void flush()Description copied from interface:XMLWriterFlush the writer and its underlying stream. -
close
public void close()Description copied from interface:XMLWriterClose the writer and its underlying stream. -
writeChars
Description copied from interface:XMLWriterWrite character data within an element.- Specified by:
writeCharsin interfaceXMLWriter- Specified by:
writeCharsin classXMLWriterBase
-