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. TheAllChemCompProviderdownloads 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 SummaryConstructors Constructor Description DemoChangeChemCompProvider()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbasicLoad(PDBFileReader reader, String pdbId)static voidmain(String[] args)
 
- 
- 
- 
Constructor Detail- 
DemoChangeChemCompProviderpublic DemoChangeChemCompProvider() 
 
- 
 - 
Method Detail- 
basicLoadpublic void basicLoad(PDBFileReader reader, String pdbId) 
 
- 
 
-