Oracle Application Server TopLink API Reference
10g Release 2 (10.1.2)

B15903-01


oracle.toplink.xml.xerces
Class DefaultXMLTranslator

java.lang.Object
  extended byoracle.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

Constructor Summary
DefaultXMLTranslator()
Default constructor.

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

Constructor Detail

DefaultXMLTranslator

public DefaultXMLTranslator()
Default constructor.

Method Detail

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

Copyright © 1998, 2005 Oracle Corporation. All Rights Reserved.