APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.rowset.internal

public Class WebRowSetXmlReader

extends Object
implements XmlReader, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, javax.sql.rowset.spi.XmlReader, javax.sql.RowSetReader
Imports
java.sql.*, javax.sql.*, java.io.*, org.xml.sax.*, org.xml.sax.helpers.*, javax.xml.parsers.*, com.sun.rowset.*, java.text.MessageFormat, javax.sql.rowset.*, javax.sql.rowset.spi.*

An implementation of the XmlReader interface, which reads and parses an XML formatted WebRowSet object. This implementation uses an org.xml.sax.Parser object as its parser.

Field Summary

Modifier and TypeField and Description
private JdbcRowSetResourceBundle
pack-priv static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
readData(RowSetInternal caller)

Implements javax.sql.RowSetReader.readData.

For code coverage purposes only right now

private void
readObject(ObjectInputStream ois)

This method re populates the resBundle during the deserialization process

public void
readXML(WebRowSet
the WebRowSet object to be parsed, whose xmlReader field must contain a reference to this XmlReader object
caller
,
Reader
the java.io.Reader object from which the parser will get its input
reader
)

Implements javax.sql.rowset.spi.XmlReader.readXML.

Parses the given WebRowSet object, getting its input from the given java.io.Reader object.

public void
readXML(WebRowSet
the WebRowSet object to be parsed, whose xmlReader field must contain a reference to this XmlReader object
caller
,
InputStream
the java.io.InputStream object from which the parser will get its input
iStream
)

Parses the given WebRowSet object, getting its input from the given java.io.InputStream object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

resBundleback to summary
private JdbcRowSetResourceBundle resBundle
serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Constructor Detail

WebRowSetXmlReaderback to summary
public WebRowSetXmlReader()

Method Detail

readDataback to summary
public void readData(RowSetInternal caller)

Implements javax.sql.RowSetReader.readData.

For code coverage purposes only right now

readObjectback to summary
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException

This method re populates the resBundle during the deserialization process

readXMLback to summary
public void readXML(WebRowSet caller, Reader reader) throws SQLException

Implements javax.sql.rowset.spi.XmlReader.readXML.

Parses the given WebRowSet object, getting its input from the given java.io.Reader object. The parser will send notifications of parse events to the rowset's XmlReaderDocHandler, which will build the rowset as an XML document.

This method is called internally by the method WebRowSet.readXml.

If a parsing error occurs, the exception thrown will include information for locating the error in the original XML document.

Parameters
caller:WebRowSet

the WebRowSet object to be parsed, whose xmlReader field must contain a reference to this XmlReader object

reader:Reader

the java.io.Reader object from which the parser will get its input

Exceptions
SQLException:
if a database access error occurs or this WebRowSetXmlReader object is not the reader for the given rowset
See Also
XmlReaderContentHandler
readXMLback to summary
public void readXML(WebRowSet caller, InputStream iStream) throws SQLException

Parses the given WebRowSet object, getting its input from the given java.io.InputStream object. The parser will send notifications of parse events to the rowset's XmlReaderDocHandler, which will build the rowset as an XML document.

Using streams is a much faster way than using java.io.Reader

This method is called internally by the method WebRowSet.readXml.

If a parsing error occurs, the exception thrown will include information for locating the error in the original XML document.

Parameters
caller:WebRowSet

the WebRowSet object to be parsed, whose xmlReader field must contain a reference to this XmlReader object

iStream:InputStream

the java.io.InputStream object from which the parser will get its input

Exceptions
SQLException:
if a database access error occurs or this WebRowSetXmlReader object is not the reader for the given rowset
See Also
XmlReaderContentHandler