|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.rowset.internal.WebRowSetXmlWriter
public class WebRowSetXmlWriter
An implementation of the XmlWriter
interface, which writes a
WebRowSet
object to an output stream as an XML document.
Constructor Summary | |
---|---|
WebRowSetXmlWriter()
|
Method Summary | |
---|---|
boolean |
writeData(javax.sql.RowSetInternal caller)
Purely for code coverage purposes.. |
void |
writeXML(WebRowSet caller,
java.io.OutputStream oStream)
Writes the given WebRowSet object as an XML document
using the given java.io.OutputStream object. |
void |
writeXML(WebRowSet caller,
java.io.Writer wrt)
Writes the given WebRowSet object as an XML document
using the given java.io.Writer object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebRowSetXmlWriter()
Method Detail |
---|
public void writeXML(WebRowSet caller, java.io.Writer wrt) throws java.sql.SQLException
WebRowSet
object as an XML document
using the given java.io.Writer
object. The XML document
will include the WebRowSet
object's data, metadata, and
properties. If a data value has been updated, that information is also
included.
This method is called by the XmlWriter
object that is
referenced in the calling WebRowSet
object's
xmlWriter
field. The XmlWriter.writeXML
method passes to this method the arguments that were supplied to it.
writeXML
in interface XmlWriter
caller
- the WebRowSet
object to be written; must
be a rowset for which this WebRowSetXmlWriter
object
is the writerwrt
- the java.io.Writer
object to which
caller
will be written
java.sql.SQLException
- if a database access error occurs or
this WebRowSetXmlWriter
object is not the writer
for the given rowsetXmlWriter.writeXML(javax.sql.rowset.WebRowSet, java.io.Writer)
public void writeXML(WebRowSet caller, java.io.OutputStream oStream) throws java.sql.SQLException
WebRowSet
object as an XML document
using the given java.io.OutputStream
object. The XML document
will include the WebRowSet
object's data, metadata, and
properties. If a data value has been updated, that information is also
included.
Using stream is a faster way than using
java.io.Writer
This method is called by the
XmlWriter
object that is
referenced in the calling WebRowSet
object's
xmlWriter
field. The XmlWriter.writeXML
method passes to this method the arguments that were supplied to it.
caller
- the WebRowSet
object to be written; must
be a rowset for which this WebRowSetXmlWriter
object
is the writerwrt
- the java.io.OutputStream
object to which
caller
will be written
java.sql.SQLException
- if a database access error occurs or
this WebRowSetXmlWriter
object is not the writer
for the given rowsetXmlWriter.writeXML(javax.sql.rowset.WebRowSet, java.io.Writer)
public boolean writeData(javax.sql.RowSetInternal caller)
writeData
in interface javax.sql.RowSetWriter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |