Package Summary Overview Summary |
| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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(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 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 XmlReader
caller
- the WebRowSet
object to be parsed, whose xmlReader
field must contain a reference to this XmlReader
object reader
- the java.io.Reader
object from which the parser will get its input SQLException
- if a database access error occurs or this WebRowSetXmlReader
object is not the reader for the given rowset XmlReaderContentHandler
public void readXML(WebRowSet caller, java.io.InputStream iStream) throws 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
object iStream
- the java.io.InputStream
object from which the parser will get its input SQLException
- if a database access error occurs or this WebRowSetXmlReader
object is not the reader for the given rowset XmlReaderContentHandler
public void readData(RowSetInternal caller)
readData
in interface RowSetReader
caller
- the RowSet
object (1) that has implemented the RowSetInternal
interface, (2) with which this reader is registered, and (3) whose execute
method called this reader
| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |