data7/src/main/java/data7/importer/Data7Importer.java
/**
     * Download the feed for a given year
     * @param year
     * @return
     * @throws IOException
     */
Download the feed for a given year
@param year
@return
@throws IOException
Download the feed for a given year @param year @return @throws IOException
private String downloadCVEXML(String year) throws IOException {
        checkFolderDestination(path.getCvePath());
        Misc.downloadFromURL(CVE_URL + year + XML, path.getCvePath());
        String fpath = path.getCvePath() + FILE_START + year + XML;
        File zip = new File(fpath);
        Misc.unzipping(fpath, path.getCvePath());
        Files.delete(zip.toPath());
        return fpath.replace(".zip", "");
    }
private String downloadCVEXML ( String year ) throws IOException { checkFolderDestination ( path . getCvePath ( ) ) ; Misc . downloadFromURL ( CVE_URL + year + XML , path . getCvePath ( ) ) ; String fpath = path . getCvePath ( ) + FILE_START + year + XML ; File zip = new File ( fpath ) ; Misc . unzipping ( fpath , path . getCvePath ( ) ) ; Files . delete ( zip . toPath ( ) ) ; return fpath . replace ( ".zip" , "" ) ; }
Download the feed for a given year
 @param year
 @return
 @throws IOException
Download the feed for a given year @param year @return @throws IOException