Oracle Application Server Web Services UDDI Client API Reference
10g (9.0.4)

Part No. B10396-01

oracle.uddi.message
Class DefaultXmlWriter

java.lang.Object
  |
  +--oracle.uddi.message.DefaultXmlWriter
All Implemented Interfaces:
DomXmlWriter, WriterXmlWriter, XmlWriter

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.

 

Method Summary
 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

 

Constructor Detail

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.
Method Detail

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.
Specified by:
flush in interface XmlWriter
MarshallException

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.
Specified by:
close in interface XmlWriter
MarshallException
See Also:
XmlWriter.flush()

Oracle Application Server Web Services UDDI Client API Reference
10g (9.0.4)

Part No. B10396-01

Copyright © 2001, 2003, Oracle. All rights reserved.