|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbelka.parser.PDBParser
public class PDBParser
Object of this class parses PDB-file either from file or from URL and creates a molecule. Filename is used as a name for new molecule.
Constructor Summary | |
---|---|
PDBParser()
|
Method Summary | |
---|---|
Molecule[] |
parseFile(File file)
Parses PDB-file and creates a molecule. |
Molecule[] |
parseFile(URL urlFileName)
Parses PDB-file from URL and creates molecules. |
StringBuffer |
print(Molecule[] molsToSave)
Prints PDB-file to a string buffer. |
int |
saveToFile(Molecule[] molsToSave,
File file)
Saves molecules into a PDB-file. |
int |
saveToFile(Molecule[] molsToSave,
URL urlFileName)
Saves moleculs into a PDB-file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDBParser()
Method Detail |
---|
public int saveToFile(Molecule[] molsToSave, URL urlFileName)
molsToSave
- array of molecules to be save.urlFileName
- name of file on the web to save.
public int saveToFile(Molecule[] molsToSave, File file)
molsToSave
- array of molecules to be save.file
- name of file to save.
public StringBuffer print(Molecule[] molsToSave)
public Molecule[] parseFile(File file)
file
- file to parse
public Molecule[] parseFile(URL urlFileName)
urlFileName
- name of file on URL;
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |