Java 类org.xml.sax.helpers.ParserFactory 实例源码

项目:ML-NLP    文件:BasicParser.java   
/** 
 * 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);

}
项目:ML-NLP    文件:NewsParser.java   
/** 
 * 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);

}