public HashSet<String> get(String key) throws VictimsException {
        key = hash(key);
        try {
            HashSet<String> cves = new HashSet<String>();
            String result = FileUtils.readFileToString(
                    FileUtils.getFile(location, key)).trim();
            for (String cve : StringUtils.split(result, ",")) {
                cves.add(cve);
            }
            return cves;
        } catch (IOException e) {
            throw new VictimsException(String.format(
                    "Could not read contents of entry with key: %s", key), e);
        }
    }
public HashSet < String > get ( String key ) throws VictimsException { key = hash ( key ) ; try { HashSet < String > cves = new HashSet < String > ( ) ; String result = FileUtils . readFileToString ( FileUtils . getFile ( location , key ) ) . trim ( ) ; for ( String cve : StringUtils . split ( result , "," ) ) { cves . add ( cve ) ; } return cves ; } catch ( IOException e ) { throw new VictimsException ( String . format ( "Could not read contents of entry with key: %s" , key ) , e ) ; } }
Get the CVEs mapped by a key

@param key
@return {@link Collection} of CVE strings
@throws VictimsException