Package com.sun.xml.rpc.processor.util
Class PrettyPrintingXMLWriterImpl
java.lang.Object
com.sun.xml.rpc.streaming.XMLWriterBase
com.sun.xml.rpc.processor.util.PrettyPrintingXMLWriterImpl
- All Implemented Interfaces:
XMLWriter
A concrete XMLWriter implementation class.
- Author:
- JAX-RPC Development Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the writer and its underlying stream.voidWrite the end tag for the current element.voidflush()Flush the writer and its underlying stream.Return a prefix for the given URI.Return the prefix factory in use by this writer.Return the URI for a given prefix.voidsetPrefixFactory(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) Write character data within an element, skipping quoting.voidwriteCharsUnquoted(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, writeComment
-
Constructor Details
-
PrettyPrintingXMLWriterImpl
-
-
Method Details
-
startElement
Description copied from interface:XMLWriterWrite the start tag for an element. -
startElement
Description copied from interface:XMLWriterWrite the start tag for an element. -
writeNamespaceDeclaration
Description copied from interface:XMLWriterWrite a namespace declaration of the current element. -
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. -
writeAttribute
Description copied from interface:XMLWriterWrite an attribute of the current element. -
writeAttributeUnquoted
Description copied from interface:XMLWriterWrite an attribute (unquoted) of the current element. -
writeChars
Description copied from interface:XMLWriterWrite character data within an element.- Specified by:
writeCharsin interfaceXMLWriter- Specified by:
writeCharsin classXMLWriterBase
-
writeChars
Description copied from interface:XMLWriterWrite character data within an element.- Specified by:
writeCharsin interfaceXMLWriter- Specified by:
writeCharsin classXMLWriterBase
-
writeCharsUnquoted
Description copied from interface:XMLWriterWrite character data within an element, skipping quoting. -
writeCharsUnquoted
public void writeCharsUnquoted(char[] buf, int offset, int len) Description copied from interface:XMLWriterWrite character data within an element, skipping quoting. -
endElement
public void endElement()Description copied from interface:XMLWriterWrite the end tag for the current element. -
getPrefixFactory
Description copied from interface:XMLWriterReturn the prefix factory in use by this writer. -
setPrefixFactory
Description copied from interface:XMLWriterSet the prefix factory to be used by this writer. -
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.
-