private void processFiles ( ) throws UpdateException { LOGGER . info ( "Processing Started for NVD CVE - {}" , downloadTask . getNvdCveInfo ( ) . getId ( ) ) ; final long startProcessing = System . currentTimeMillis ( ) ; try { importJSON ( downloadTask . getFile ( ) ) ; cveDB . commit ( ) ; properties . save ( downloadTask . getNvdCveInfo ( ) ) ; } catch ( ParserConfigurationException | SQLException | DatabaseException | ClassNotFoundException | IOException ex ) { throw new UpdateException ( ex ) ; } finally { downloadTask . cleanup ( ) ; } LOGGER . info ( "Processing Complete for NVD CVE - {} ({} ms)" , downloadTask . getNvdCveInfo ( ) . getId ( ) , System . currentTimeMillis ( ) - startProcessing ) ; }
Processes the NVD CVE XML file and imports the data into the DB .