public class AllChemCompProvider extends java.lang.Object implements ChemCompProvider, java.lang.Runnable
DownloadChemCompProvider that is used by default.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPONENTS_FILE_LOCATION |
| Constructor and Description |
|---|
AllChemCompProvider() |
| Modifier and Type | Method and Description |
|---|---|
static void |
downloadFile()
Downloads the components.cif.gz file from the wwPDB site.
|
ChemComp |
getChemComp(java.lang.String recordName)
Returns a new instance of a chemical component definition.
|
void |
run()
Do the actual loading of the dictionary in a thread.
|
public static final java.lang.String COMPONENTS_FILE_LOCATION
public static void downloadFile()
throws java.io.IOException
java.io.IOExceptionpublic ChemComp getChemComp(java.lang.String recordName)
getChemComp in interface ChemCompProviderrecordName - the ID of the ChemCompChemComp definition.public void run()
run in interface java.lang.Runnable