Package com.sun.xml.rpc.streaming
Class XMLWriterBase
- java.lang.Object
-
- com.sun.xml.rpc.streaming.XMLWriterBase
-
- All Implemented Interfaces:
XMLWriter
- Direct Known Subclasses:
PrettyPrintingXMLWriterImpl
,StAXWriter
,XmlTreeWriter
,XMLWriterImpl
public abstract class XMLWriterBase extends Object implements XMLWriter
A base class for XMLWriter implementations.
It provides the implementation of some derived XMLWriter methods.
- Author:
- JAX-RPC Development Team
-
-
Constructor Summary
Constructors Constructor Description XMLWriterBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
startElement(String localName)
Write the start tag for an element.void
startElement(QName name)
Write the start tag for an element.void
startElement(QName name, String prefix)
Write the start tag for an element.void
writeAttribute(String localName, String value)
Write an attribute of the current element.void
writeAttribute(QName name, String value)
Write an attribute of the current element.void
writeAttributeUnquoted(String localName, String value)
Write an attribute (unquoted) of the current element.void
writeAttributeUnquoted(QName name, String value)
Write an attribute (unquoted) of the current element.abstract void
writeChars(CDATA chars)
Write character data within an element.abstract void
writeChars(String chars)
Write character data within an element.void
writeComment(String comment)
Write a comment within an element.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.xml.rpc.streaming.XMLWriter
close, endElement, flush, getPrefix, getPrefixFactory, getURI, setPrefixFactory, startElement, startElement, writeAttribute, writeAttributeUnquoted, writeCharsUnquoted, writeCharsUnquoted, writeNamespaceDeclaration, writeNamespaceDeclaration
-
-
-
-
Method Detail
-
startElement
public void startElement(String localName)
Description copied from interface:XMLWriter
Write the start tag for an element.- Specified by:
startElement
in interfaceXMLWriter
-
startElement
public void startElement(QName name)
Description copied from interface:XMLWriter
Write the start tag for an element.- Specified by:
startElement
in interfaceXMLWriter
-
startElement
public void startElement(QName name, String prefix)
Description copied from interface:XMLWriter
Write the start tag for an element.- Specified by:
startElement
in interfaceXMLWriter
-
writeAttribute
public void writeAttribute(String localName, String value)
Description copied from interface:XMLWriter
Write an attribute of the current element.- Specified by:
writeAttribute
in interfaceXMLWriter
-
writeAttribute
public void writeAttribute(QName name, String value)
Description copied from interface:XMLWriter
Write an attribute of the current element.- Specified by:
writeAttribute
in interfaceXMLWriter
-
writeAttributeUnquoted
public void writeAttributeUnquoted(QName name, String value)
Description copied from interface:XMLWriter
Write an attribute (unquoted) of the current element.- Specified by:
writeAttributeUnquoted
in interfaceXMLWriter
-
writeAttributeUnquoted
public void writeAttributeUnquoted(String localName, String value)
Description copied from interface:XMLWriter
Write an attribute (unquoted) of the current element.- Specified by:
writeAttributeUnquoted
in interfaceXMLWriter
-
writeChars
public abstract void writeChars(CDATA chars)
Description copied from interface:XMLWriter
Write character data within an element.- Specified by:
writeChars
in interfaceXMLWriter
-
writeChars
public abstract void writeChars(String chars)
Description copied from interface:XMLWriter
Write character data within an element.- Specified by:
writeChars
in interfaceXMLWriter
-
writeComment
public void writeComment(String comment)
Description copied from interface:XMLWriter
Write a comment within an element.- Specified by:
writeComment
in interfaceXMLWriter
-
-