oracle.toplink.xml.xerces
Class DefaultXMLTranslator
java.lang.Object
oracle.toplink.xml.xerces.DefaultXMLTranslator
- All Implemented Interfaces:
- java.io.Serializable, XMLTranslator
- public class DefaultXMLTranslator
- extends java.lang.Object
- implements XMLTranslator
This is the default implementation of the XMLTranslator
interface. It implements the read and write methods for converting XML documents to database rows and vice versa.
- Since:
- TOPLink/Java 3.0
- See Also:
XMLCall
, Serialized Form
Method Summary |
DatabaseRow |
read(java.io.Reader stream)
Read an XML document from the specified input stream and convert it to a TopLink database row. |
void |
write(java.io.Writer stream, DatabaseRow row)
Convert the specified database row to an XML document and write it to the specified stream. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultXMLTranslator
public DefaultXMLTranslator()
- Default constructor.
read
public DatabaseRow read(java.io.Reader stream)
- Read an XML document from the specified input stream and convert it to a TopLink database row. Close the stream and return the row.
-
- Specified by:
read
in interface XMLTranslator
write
public void write(java.io.Writer stream,
DatabaseRow row)
- Convert the specified database row to an XML document and write it to the specified stream.
-
- Specified by:
write
in interface XMLTranslator