Package org.ita.capes.professor

Examples of org.ita.capes.professor.LattesSAXHandler


     
    } catch (FileNotFoundException e1) {
      e1.printStackTrace();
    }
    InputStream is = fis;
    LattesSAXHandler handler = new LattesSAXHandler();
    parser.setContentHandler(handler);
    InputSource input = new InputSource(is);
    try {
      parser.parse(input);
    } catch (IOException e) {
      e.printStackTrace();
    } catch (SAXException e) { 
      //e.printStackTrace();
    }
    handler.getCorrente();
  }
View Full Code Here


          File f = new File(myLattesDir+resultList.get(0)+".html");
          if(f.exists()){
            fis = new FileInputStream(myLattesDir+resultList.get(0)+".html");
                     
          InputStream is = fis;
          LattesSAXHandler handler = new LattesSAXHandler();
          parser.setContentHandler(handler);
          InputSource input = new InputSource(is);
         
          parser.parse(input);
          if(!handler.isErrorPageFromSite()) professorTelaDAO.insert(handler.getCorrente());
          System.out.println("Thread "+numero+": Inserido professor "+resultList.get(0));
          }
          else{
            System.out.println("Sem arquivo"+ myLattesDir+resultList.get(0)+".html");
          }
View Full Code Here

TOP

Related Classes of org.ita.capes.professor.LattesSAXHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.