jdk/src/share/classes/com/sun/rowset/internal/WebRowSetXmlReader.java
changeset 3843 b582759a6e99
parent 2 90ce3da70b43
child 5506 202f599c92aa
equal deleted inserted replaced
3842:44ffae084bb8 3843:b582759a6e99
    43  * reads and parses an XML formatted <code>WebRowSet</code> object.
    43  * reads and parses an XML formatted <code>WebRowSet</code> object.
    44  * This implementation uses an <code>org.xml.sax.Parser</code> object
    44  * This implementation uses an <code>org.xml.sax.Parser</code> object
    45  * as its parser.
    45  * as its parser.
    46  */
    46  */
    47 public class WebRowSetXmlReader implements XmlReader, Serializable {
    47 public class WebRowSetXmlReader implements XmlReader, Serializable {
       
    48 
       
    49 
       
    50     private JdbcRowSetResourceBundle resBundle;
       
    51 
       
    52     public WebRowSetXmlReader(){
       
    53         try {
       
    54            resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
       
    55         } catch(IOException ioe) {
       
    56             throw new RuntimeException(ioe);
       
    57         }
       
    58     }
    48 
    59 
    49     /**
    60     /**
    50      * Parses the given <code>WebRowSet</code> object, getting its input from
    61      * Parses the given <code>WebRowSet</code> object, getting its input from
    51      * the given <code>java.io.Reader</code> object.  The parser will send
    62      * the given <code>java.io.Reader</code> object.  The parser will send
    52      * notifications of parse events to the rowset's
    63      * notifications of parse events to the rowset's
    67      * @exception SQLException if a database access error occurs or
    78      * @exception SQLException if a database access error occurs or
    68      *            this <code>WebRowSetXmlReader</code> object is not the
    79      *            this <code>WebRowSetXmlReader</code> object is not the
    69      *            reader for the given rowset
    80      *            reader for the given rowset
    70      * @see XmlReaderContentHandler
    81      * @see XmlReaderContentHandler
    71      */
    82      */
    72 
       
    73     private JdbcRowSetResourceBundle resBundle;
       
    74 
       
    75     public WebRowSetXmlReader(){
       
    76         try {
       
    77            resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
       
    78         } catch(IOException ioe) {
       
    79             throw new RuntimeException(ioe);
       
    80         }
       
    81     }
       
    82 
       
    83     public void readXML(WebRowSet caller, java.io.Reader reader) throws SQLException {
    83     public void readXML(WebRowSet caller, java.io.Reader reader) throws SQLException {
    84         try {
    84         try {
    85             // Crimson Parser(as in J2SE 1.4.1 is NOT able to handle
    85             // Crimson Parser(as in J2SE 1.4.1 is NOT able to handle
    86             // Reader(s)(FileReader).
    86             // Reader(s)(FileReader).
    87             //
    87             //