org.biojava.bio.structure.io
public class PDBMSDReader extends Object implements StructureIO
| Modifier and Type | Field and Description |
|---|---|
protected DataSource |
dataSource |
| Constructor and Description |
|---|
PDBMSDReader() |
| Modifier and Type | Method and Description |
|---|---|
Structure |
getStructureById(String pdbId)
Get a structure by providing a PDB code.
|
void |
setDBConnection(String dbDriver,
String dbUrl,
String dbUsername,
String dbPassword)
open a database conenction to the MSD search database
|
protected DataSource dataSource
public void setDBConnection(String dbDriver, String dbUrl, String dbUsername, String dbPassword) throws SQLException
dbDriver - specified which JDBC driver to use e.g.dbUrl - connection stringdbUsername - the username in the dbdbPassword - password to useSQLExceptionpublic Structure getStructureById(String pdbId) throws IOException
getStructureById in interface StructureIOpdbId - a String specifying the id value (PDB code)IOException - ...