public class ZipChemCompProvider extends Object implements ChemCompProvider
Constructor and Description |
---|
ZipChemCompProvider(String chemicalComponentDictionaryFile,
String tempDir)
ZipChemCompProvider is a Chemical Component provider that stores chemical components
in a zip archive.
|
Modifier and Type | Method and Description |
---|---|
ChemComp |
getChemComp(String recordName)
Returns a new instance of a chemical component definition.
|
static void |
purgeTempFiles(String tempdir)
Cleanup chemical component (.cif.gz) files downloaded to tmpdir.
|
void |
setRemoveCif(boolean doRemove)
Remove downloaded .cif.gz after adding to zip archive?
|
public ZipChemCompProvider(String chemicalComponentDictionaryFile, String tempDir) throws IOException
chemicalComponentDictionaryFile
- : path to zip archive for chemical components.tempDir
- : path for temporary directory, (null) defaults to path in property "java.io.tmpdir".IOException
public void setRemoveCif(boolean doRemove)
doRemove
- public ChemComp getChemComp(String recordName)
ChemCompProvider
getChemComp
in interface ChemCompProvider
recordName
- the ID of the ChemComp
ChemComp
definition.public static void purgeTempFiles(String tempdir)
tempdir
- : path to temporary directory for chemical componentsCopyright © 2000–2018 BioJava. All rights reserved.