|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.rowset.internal.WebRowSetXmlReader
public class WebRowSetXmlReader
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.
| Constructor Summary | |
|---|---|
WebRowSetXmlReader()
|
|
| Method Summary | |
|---|---|
void |
readData(javax.sql.RowSetInternal caller)
For code coverage purposes only right now |
void |
readXML(WebRowSet caller,
java.io.InputStream iStream)
Parses the given WebRowSet object, getting its input from
the given java.io.InputStream object. |
void |
readXML(WebRowSet caller,
java.io.Reader reader)
Parses the given WebRowSet object, getting its input from
the given java.io.Reader object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebRowSetXmlReader()
| Method Detail |
|---|
public void readXML(WebRowSet caller,
java.io.Reader reader)
throws java.sql.SQLException
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.
readXML in interface XmlReadercaller - the WebRowSet object to be parsed, whose
xmlReader field must contain a reference to
this XmlReader objectreader - the java.io.Reader object from which
the parser will get its input
java.sql.SQLException - if a database access error occurs or
this WebRowSetXmlReader object is not the
reader for the given rowsetXmlReaderContentHandler
public void readXML(WebRowSet caller,
java.io.InputStream iStream)
throws java.sql.SQLException
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.
caller - the WebRowSet object to be parsed, whose
xmlReader field must contain a reference to
this XmlReader objectreader - the java.io.InputStream object from which
the parser will get its input
java.sql.SQLException - if a database access error occurs or
this WebRowSetXmlReader object is not the
reader for the given rowsetXmlReaderContentHandlerpublic void readData(javax.sql.RowSetInternal caller)
readData in interface javax.sql.RowSetReader
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||