/** * Constructs a new <code>XmlReaderContentHandler</code> object that will assist the SAX parser in * reading a <code>WebRowSet</code> object in the format of an XML document. In addition to * setting some default values, this constructor creates three <code>HashMap</code> objects, one * for properties, one for metadata, and one for data. These hash maps map the strings sent by the * SAX parser to integer constants so that they can be compared more efficiently in <code>switch * </code> statements. * * @param r the <code>RowSet</code> object in XML format that will be read */ public XmlReaderContentHandler(RowSet r) { // keep the rowset we've been given rs = (WebRowSetImpl) r; // set-up the token maps initMaps(); // allocate the collection for the updates updates = new Vector<>(); // start out with the empty string columnValue = ""; propertyValue = ""; metaDataValue = ""; nullVal = false; idx = 0; tempStr = ""; tempUpdate = ""; tempCommand = ""; try { resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle(); } catch (IOException ioe) { throw new RuntimeException(ioe); } }