/** * parseNews: Set up parser object, perform parsing of REUTERS-21578 * documents, and print data onto STDOUT */ public static void setParser () throws Exception { parser = ParserFactory.makeParser("com.jclark.xml.sax.Driver"); parser.setDocumentHandler(handler); parser.setErrorHandler((ErrorHandler) handler); }