StockByMakeHandler
As we saw earlier in this book, before we learn how to implement the specific XML parsing methods in the StockByMakeHandler class, we need to understand the format of the XML message it supports. In the VMS Motors application, the stock-by-make-pie.xml process returns the XML document shown in Figure 16-11.
The StockByMakeHandler class, which is used by the SAX parser to process the XML message shown in Figure 16-11, is described in the following sections.
constructor
The constructor for StockByMakeHandler instantiates the class with the correct number of columns for the table it creates. Figure 16-12 shows the code required.
The {constructor} method uses the construct-super primitive to pass the columns argument to the ancestor ...
Get Enterprise Curl now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.