< prev index next >
src/java.sql.rowset/share/classes/com/sun/rowset/internal/WebRowSetXmlWriter.java
Print this page
*** 34,61 ****
import javax.sql.rowset.*;
import javax.sql.rowset.spi.*;
/**
! * An implementation of the <code>XmlWriter</code> interface, which writes a
! * <code>WebRowSet</code> object to an output stream as an XML document.
*/
public class WebRowSetXmlWriter implements XmlWriter, Serializable {
/**
! * The <code>java.io.Writer</code> object to which this <code>WebRowSetXmlWriter</code>
! * object will write when its <code>writeXML</code> method is called. The value
! * for this field is set with the <code>java.io.Writer</code> object given
! * as the second argument to the <code>writeXML</code> method.
*/
private transient java.io.Writer writer;
/**
! * The <code>java.util.Stack</code> object that this <code>WebRowSetXmlWriter</code>
* object will use for storing the tags to be used for writing the calling
! * <code>WebRowSet</code> object as an XML document.
*/
private java.util.Stack<String> stack;
private JdbcRowSetResourceBundle resBundle;
--- 34,61 ----
import javax.sql.rowset.*;
import javax.sql.rowset.spi.*;
/**
! * An implementation of the {@code XmlWriter} interface, which writes a
! * {@code WebRowSet} object to an output stream as an XML document.
*/
public class WebRowSetXmlWriter implements XmlWriter, Serializable {
/**
! * The {@code java.io.Writer} object to which this {@code WebRowSetXmlWriter}
! * object will write when its {@code writeXML} method is called. The value
! * for this field is set with the {@code java.io.Writer} object given
! * as the second argument to the {@code writeXML} method.
*/
private transient java.io.Writer writer;
/**
! * The {@code java.util.Stack} object that this {@code WebRowSetXmlWriter}
* object will use for storing the tags to be used for writing the calling
! * {@code WebRowSet} object as an XML document.
*/
private java.util.Stack<String> stack;
private JdbcRowSetResourceBundle resBundle;
*** 67,94 ****
throw new RuntimeException(ioe);
}
}
/**
! * Writes the given <code>WebRowSet</code> object as an XML document
! * using the given <code>java.io.Writer</code> object. The XML document
! * will include the <code>WebRowSet</code> object's data, metadata, and
* properties. If a data value has been updated, that information is also
* included.
* <P>
! * This method is called by the <code>XmlWriter</code> object that is
! * referenced in the calling <code>WebRowSet</code> object's
! * <code>xmlWriter</code> field. The <code>XmlWriter.writeXML</code>
* method passes to this method the arguments that were supplied to it.
*
! * @param caller the <code>WebRowSet</code> object to be written; must
! * be a rowset for which this <code>WebRowSetXmlWriter</code> object
* is the writer
! * @param wrt the <code>java.io.Writer</code> object to which
! * <code>caller</code> will be written
* @exception SQLException if a database access error occurs or
! * this <code>WebRowSetXmlWriter</code> object is not the writer
* for the given rowset
* @see XmlWriter#writeXML
*/
public void writeXML(WebRowSet caller, java.io.Writer wrt)
throws SQLException {
--- 67,94 ----
throw new RuntimeException(ioe);
}
}
/**
! * Writes the given {@code WebRowSet} object as an XML document
! * using the given {@code java.io.Writer} object. The XML document
! * will include the {@code WebRowSet} object's data, metadata, and
* properties. If a data value has been updated, that information is also
* included.
* <P>
! * This method is called by the {@code XmlWriter} object that is
! * referenced in the calling {@code WebRowSet} object's
! * {@code xmlWriter} field. The {@code XmlWriter.writeXML}
* method passes to this method the arguments that were supplied to it.
*
! * @param caller the {@code WebRowSet} object to be written; must
! * be a rowset for which this {@code WebRowSetXmlWriter} object
* is the writer
! * @param wrt the {@code java.io.Writer} object to which
! * {@code caller} will be written
* @exception SQLException if a database access error occurs or
! * this {@code WebRowSetXmlWriter} object is not the writer
* for the given rowset
* @see XmlWriter#writeXML
*/
public void writeXML(WebRowSet caller, java.io.Writer wrt)
throws SQLException {
*** 98,127 ****
writer = wrt;
writeRowSet(caller);
}
/**
! * Writes the given <code>WebRowSet</code> object as an XML document
! * using the given <code>java.io.OutputStream</code> object. The XML document
! * will include the <code>WebRowSet</code> object's data, metadata, and
* properties. If a data value has been updated, that information is also
* included.
* <P>
! * Using stream is a faster way than using <code>java.io.Writer<code/>
*
! * This method is called by the <code>XmlWriter</code> object that is
! * referenced in the calling <code>WebRowSet</code> object's
! * <code>xmlWriter</code> field. The <code>XmlWriter.writeXML</code>
* method passes to this method the arguments that were supplied to it.
*
! * @param caller the <code>WebRowSet</code> object to be written; must
! * be a rowset for which this <code>WebRowSetXmlWriter</code> object
* is the writer
! * @param oStream the <code>java.io.OutputStream</code> object to which
! * <code>caller</code> will be written
* @throws SQLException if a database access error occurs or
! * this <code>WebRowSetXmlWriter</code> object is not the writer
* for the given rowset
* @see XmlWriter#writeXML
*/
public void writeXML(WebRowSet caller, java.io.OutputStream oStream)
throws SQLException {
--- 98,127 ----
writer = wrt;
writeRowSet(caller);
}
/**
! * Writes the given {@code WebRowSet} object as an XML document
! * using the given {@code java.io.OutputStream} object. The XML document
! * will include the {@code WebRowSet} object's data, metadata, and
* properties. If a data value has been updated, that information is also
* included.
* <P>
! * Using stream is a faster way than using {@code java.io.Writer}
*
! * This method is called by the {@code XmlWriter} object that is
! * referenced in the calling {@code WebRowSet} object's
! * {@code xmlWriter} field. The {@code XmlWriter.writeXML}
* method passes to this method the arguments that were supplied to it.
*
! * @param caller the {@code WebRowSet} object to be written; must
! * be a rowset for which this {@code WebRowSetXmlWriter} object
* is the writer
! * @param oStream the {@code java.io.OutputStream} object to which
! * {@code caller} will be written
* @throws SQLException if a database access error occurs or
! * this {@code WebRowSetXmlWriter} object is not the writer
* for the given rowset
* @see XmlWriter#writeXML
*/
public void writeXML(WebRowSet caller, java.io.OutputStream oStream)
throws SQLException {
< prev index next >