java.lang.Runnable
, ChemCompProvider
public class AllChemCompProvider extends java.lang.Object implements ChemCompProvider, java.lang.Runnable
DownloadChemCompProvider
that is used by default.Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
COMPONENTS_FILE_LOCATION |
Constructor | Description |
---|---|
AllChemCompProvider() |
Modifier and Type | Method | 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.IOException
public ChemComp getChemComp(java.lang.String recordName)
getChemComp
in interface ChemCompProvider
recordName
- the ID of the ChemComp
ChemComp
definition.public void run()
run
in interface java.lang.Runnable