util
Class PdbFileOpener

java.lang.Object
  extended by util.PdbFileOpener
All Implemented Interfaces:
java.lang.Runnable

public class PdbFileOpener
extends java.lang.Object
implements java.lang.Runnable

This class is for loading an compressed PDB file from the FTP Server and uncompressing it. The user gives the PDB 4-letter code as parameter.


Constructor Summary
PdbFileOpener(java.lang.String pdbCode)
          Constructor of the PdbFileOpener.
PdbFileOpener(java.lang.String pdbCode, javax.swing.JTextArea progressInfo)
          Constructor of the PdbFileOpener.
 
Method Summary
 int getDownloaded()
          Get this download's progress.
 java.lang.String getPdbFile()
          Returns the string of the PDB file.
 java.lang.Thread getThread()
          Returns the thread.
 void run()
          Runs the thread: Downloading + Uncompressing the PDB file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdbFileOpener

public PdbFileOpener(java.lang.String pdbCode)
Constructor of the PdbFileOpener. Gets the PDB code.

Parameters:
pdbCode -

PdbFileOpener

public PdbFileOpener(java.lang.String pdbCode,
                     javax.swing.JTextArea progressInfo)
Constructor of the PdbFileOpener. Gets the PDB code.

Parameters:
pdbCode -
Method Detail

getDownloaded

public int getDownloaded()
Get this download's progress.

Returns:
int

run

public void run()
Runs the thread: Downloading + Uncompressing the PDB file.

Specified by:
run in interface java.lang.Runnable

getPdbFile

public java.lang.String getPdbFile()
Returns the string of the PDB file.

Returns:
pdbFile String

getThread

public java.lang.Thread getThread()
Returns the thread.

Returns:
thread Thread