+ public void setBugCollection(BugCollection bugs) { m_bugCollection = bugs; }
+ public void setId(long id) { m_id = id; }
+ public void setStart(Date start) { m_start = start.getTime(); }
+ public void setEnd(Date date) { m_end = date.getTime(); }
+
+ public void parse(InputSource xml) throws FileNotFoundException, IOException, SAXException
+ {
+ m_bugCollection = new BugCollection();
+
+ XMLReader reader = XMLReaderFactory.createXMLReader();
+ ParseHandler ph = new ParseHandler(m_bugCollection);
+ ParseErrorHandler peh = new ParseErrorHandler();
+ reader.setContentHandler(ph);
+ reader.setErrorHandler(peh);
+ reader.parse(xml);
+ }
+
+
+ public void dump(PrintWriter pw)
+ {
+ if (null != m_bugCollection) {
+ m_bugCollection.dump(pw, 2);
+ }
+ }