Oracle® Application Server Web Services UDDI Client API Reference
10g Release 2 (10.1.2)

Part No. B13971-01

oracle.uddi.message
Class DefaultXmlScanner

java.lang.Object
  extended byoracle.uddi.message.DefaultXmlScanner

All Implemented Interfaces:
DomXmlScanner, ReaderXmlScanner, XmlScanner

public class DefaultXmlScanner
extends java.lang.Object
implements DomXmlScanner, ReaderXmlScanner

This class is an implementation of both the DomXmlScanner interface and the ReaderXmlScanner interface; that is, it can act as a source DOM tree or a source Reader for UddiElement content. See UddiElement for more information about marshalling and unmarshalling element content.


Constructor Summary
DefaultXmlScanner()
          This constructor should not be called by clients of the API.

 

Method Summary
 void close()
          Closes the XmlScanner and relinquishes any underlying resources.
 org.w3c.dom.Element getSourceElement()
          Returns the DOM element which will be the source of the element content; it should contain the input DOM tree.
 void init(org.w3c.dom.Element el)
          Initializes the XmlScanner as a DomXmlScanner.
 void init(java.io.Reader reader)
          Initializes the XmlScanner as a ReaderXmlScanner.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DefaultXmlScanner

public DefaultXmlScanner()
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.Reader reader)
Initializes the XmlScanner as a ReaderXmlScanner. Note: you should not use the same object as both a ReaderXmlScanner and a DomXmlScanner at the same time.
Specified by:
init in interface ReaderXmlScanner

init

public void init(org.w3c.dom.Element el)
Initializes the XmlScanner as a DomXmlScanner. Note: you should not use the same object as both a ReaderXmlScanner and a DomXmlScanner at the same time.
Specified by:
init in interface DomXmlScanner

getSourceElement

public org.w3c.dom.Element getSourceElement()
Returns the DOM element which will be the source of the element content; it should contain the input DOM tree.
Specified by:
getSourceElement in interface DomXmlScanner

close

public void close()
           throws UnmarshallException
Closes the XmlScanner and relinquishes any underlying resources. Note that if this object is being used as a ReaderXmlScanner, this method will close the reader.
Specified by:
close in interface XmlScanner
Throws:
UnmarshallException

Oracle® Application Server Web Services UDDI Client API Reference
10g Release 2 (10.1.2)

Part No. B13971-01

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