public class DownloadChemCompProvider extends Object implements ChemCompProvider
AllChemCompProvider
. Another provider, that
does not require any network access, but only can support a limited set of chemical component definitions, is the ReducedChemCompProvider
.Modifier and Type | Field and Description |
---|---|
static String |
CHEM_COMP_CACHE_DIRECTORY |
static String |
DEFAULT_SERVER_URL |
static String |
serverBaseUrl |
static boolean |
useDefaultUrlLayout
Use default RCSB server layout (true) or internal RCSB server layout (false)
|
Constructor and Description |
---|
DownloadChemCompProvider() |
DownloadChemCompProvider(String cacheFilePath) |
Modifier and Type | Method and Description |
---|---|
void |
checkDoFirstInstall()
Checks if the chemical components already have been installed into the PDB directory.
|
ChemComp |
getChemComp(String recordName)
Loads the definitions for this
ChemComp from a local file and instantiates a new object. |
static String |
getLocalFileName(String recordName)
Returns the file name that contains the definition for this
ChemComp |
boolean |
isDownloadAll()
By default this provider will download only some of the
ChemComp files. |
void |
setDownloadAll(boolean downloadAll)
By default this provider will download only some of the
ChemComp files. |
public static final String CHEM_COMP_CACHE_DIRECTORY
public static final String DEFAULT_SERVER_URL
public static String serverBaseUrl
public static boolean useDefaultUrlLayout
public DownloadChemCompProvider()
public DownloadChemCompProvider(String cacheFilePath)
public void checkDoFirstInstall()
public ChemComp getChemComp(String recordName)
ChemComp
from a local file and instantiates a new object.getChemComp
in interface ChemCompProvider
recordName
- the ID of the ChemComp
ChemComp
definition.public static String getLocalFileName(String recordName)
ChemComp
recordName
- the ID of the ChemComp
public boolean isDownloadAll()
ChemComp
files.
The user has to request that all files should be downloaded by setting this parameter to true.public void setDownloadAll(boolean downloadAll)
ChemComp
files.
The user has to request that all files should be downloaded by setting this parameter to true.flag
- if the all components should be downloaded and installed at startup. (default: false)Copyright © 2000–2018 BioJava. All rights reserved.