Package demo
Class DemoChangeChemCompProvider
- java.lang.Object
-
- demo.DemoChangeChemCompProvider
-
public class DemoChangeChemCompProvider extends Object
This demo shows how to use an alternative ChemCompProvider. The default mechanism in BioJava is to access chemical componentsby using theDownloadChemCompProvider
. It fetches and locally caches chemical component definitions as they are encountered during file parsing. It can be enabled by using theFileParsingParameters#setLoadChemCompInfo(boolean)
method. TheAllChemCompProvider
downloads and unpacks all chemcomps. It is slower and requires more memory than the defaultDownloadChemCompProvider
, but it avoids network access to the FTP site, if a new chemcomp is detected, that has not been downloaded yet. Since all chemcomps will be kept in memory, the standard memory that is available to a JVM will not be sufficient in order to run this demo. Please start with -Xmx200M- Author:
- Andreas Prlic
-
-
Constructor Summary
Constructors Constructor Description DemoChangeChemCompProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
basicLoad(PDBFileReader reader, String pdbId)
static void
main(String[] args)
-
-
-
Constructor Detail
-
DemoChangeChemCompProvider
public DemoChangeChemCompProvider()
-
-
Method Detail
-
basicLoad
public void basicLoad(PDBFileReader reader, String pdbId)
-
-