private ChemComp downloadAndAdd ( String recordName ) { final ChemComp cc = m_dlProvider . getChemComp ( recordName ) ; // final File [] files = finder(m_tempDir.resolve("chemcomp").toString(), "cif.gz"); final File [ ] files = new File [ 1 ] ; Path cif = m_tempDir . resolve ( "chemcomp" ) . resolve ( recordName + ".cif.gz" ) ; files [ 0 ] = cif . toFile ( ) ; if ( files [ 0 ] != null ) { addToZipFileSystem ( m_zipFile , files , m_zipRootDir ) ; if ( m_removeCif ) for ( File f : files ) f . delete ( ) ; } return cc ; }
Use DownloadChemCompProvider to grab a gzipped cif record from the PDB . Zip all downloaded cif . gz files into the dictionary .