oracle.uddi.message
Class DefaultXmlWriter
java.lang.Object
|
+--oracle.uddi.message.DefaultXmlWriter
- public class DefaultXmlWriter
- extends java.lang.Object
- implements DomXmlWriter, WriterXmlWriter
This class is an implementation of both the DomXmlWriter
interface and the WriterXmlWriter
interface; that is,
it can act as a destination DOM tree or a destination Writer
for UddiElement content. See UddiElement
for more
information about marshalling and unmarshalling element content.
Constructor Summary |
DefaultXmlWriter()
This constructor should not be called by clients of the API. |
Type | Method |
void |
close()
Flushes the XmlWriter and then closes it and relinquishes
any underlying resources. |
void |
flush()
Flushes all accumulated element content to the destination,
excluding any content that has previously been flushed. |
org.w3c.dom.Element |
getDestElement()
Returns the DOM element which will be the destination of
the element content; it will contain the output DOM tree. |
void |
init(org.w3c.dom.Element el)
Initializes the XmlWriter as a DomXmlWriter. |
void |
init(java.io.Writer writer)
Initializes the XmlWriter as a WriterXmlWriter. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DefaultXmlWriter
public DefaultXmlWriter()
- This constructor should not be called by clients of the API.
You should retrieve an instance of this class through an
interface reference by calling a method on an instance of
UddiClient
.
init
public void init(java.io.Writer writer)
- Initializes the XmlWriter as a WriterXmlWriter.
Note: you should not use the same object as both a
WriterXmlWriter and a DomXmlWriter at the same time.
- Specified by:
- init in interface WriterXmlWriter
init
public void init(org.w3c.dom.Element el)
- Initializes the XmlWriter as a DomXmlWriter.
Note: you should not use the same object as both a
WriterXmlWriter and a DomXmlWriter at the same time.
- Specified by:
- init in interface DomXmlWriter
getDestElement
public org.w3c.dom.Element getDestElement()
- Returns the DOM element which will be the destination of
the element content; it will contain the output DOM tree.
- Specified by:
- getDestElement in interface DomXmlWriter
flush
public void flush()
throws MarshallException
- Flushes all accumulated element content to the destination,
excluding any content that has previously been flushed.
close
public void close()
throws MarshallException
- Flushes the XmlWriter and then closes it and relinquishes
any underlying resources. Note that if this object is being used
as a WriterXmlWriter, this method will close the underlying writer.
Copyright © 2001 - Oracle Corporation