pdbParser
Class PDBreader

java.lang.Object
  extended by pdbParser.PDBreader
All Implemented Interfaces:
IPDBreader

public class PDBreader
extends java.lang.Object
implements IPDBreader

This class makes functions available to construct a Protein object by given PDBfile.


Constructor Summary
PDBreader()
          initialises the constructor
 
Method Summary
 java.util.Hashtable getAllProteins(java.lang.String DBpath)
          This function creates for each PDBfile in the given directory a Protein object.
 Protein getProtein(java.lang.String PDBcode, java.lang.String DBpath)
          This function creates a Protein object by given PDBname and directory.
 java.util.Hashtable getProteins(java.util.Vector vector, java.lang.String DBpath)
          This function creates for each PDBfile in the given directory a Protein object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDBreader

public PDBreader()
initialises the constructor

Method Detail

getProteins

public java.util.Hashtable getProteins(java.util.Vector vector,
                                       java.lang.String DBpath)
                                throws java.io.IOException
This function creates for each PDBfile in the given directory a Protein object. The Protein objects will be stored in a hashtable. The keys are the PDBnames and the values are the corresponding Protein objects.

Specified by:
getProteins in interface IPDBreader
Parameters:
PDBnames - Vector
Directory - String
Returns:
Proteins Hashtable
Throws:
java.io.IOException

getProtein

public Protein getProtein(java.lang.String PDBcode,
                          java.lang.String DBpath)
                   throws java.io.IOException
This function creates a Protein object by given PDBname and directory.

Specified by:
getProtein in interface IPDBreader
Parameters:
String - PDBname
String - Path
Returns:
Protein Protein
Throws:
java.io.IOException

getAllProteins

public java.util.Hashtable getAllProteins(java.lang.String DBpath)
                                   throws java.io.IOException
This function creates for each PDBfile in the given directory a Protein object. The Protein objects will be stored in a hashtable. The keys are the PDBnames and the values are the correspnding Protein objects.

Specified by:
getAllProteins in interface IPDBreader
Parameters:
DBpath - String
Returns:
ProteinObjects Hashtable
Throws:
java.io.IOException