|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.bio.structure.io.mmcif.AllChemCompProvider
public class AllChemCompProvider
A ChemComp provider that downloads and caches the components.cif file from the wwPDB site. It then loads
all chemical components at startup and keeps them in memory. This provider is not used as a default
since it is slower at startup and requires more memory than the DownloadChemCompProvider
that is used by default.
Constructor Summary | |
---|---|
AllChemCompProvider()
|
Method Summary | |
---|---|
static void |
checkPath()
make sure all paths are initialized correctly |
static void |
downloadFile()
Downloads the components.cif.gz file from the wwPDB site. |
ChemComp |
getChemComp(String recordName)
Returns a new instance of a chemical component definition. |
void |
run()
Do the actual loading of the dictionary in a thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AllChemCompProvider()
Method Detail |
---|
public static void checkPath()
public static void downloadFile() throws IOException, FileNotFoundException
IOException
FileNotFoundException
public ChemComp getChemComp(String recordName)
getChemComp
in interface ChemCompProvider
recordName
- the ID of the ChemComp
ChemComp
definition.public void run()
run
in interface Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |