oracle.uddi.message
Class DefaultXmlScanner
java.lang.Object
|
+--oracle.uddi.message.DefaultXmlScanner
- 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. |
Type | Method |
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 |
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
.
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.
Copyright © 2001 - Oracle Corporation