|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbelka.parser.ProjectParser
public class ProjectParser
Object of this class load project-file either from file or URL.
Constructor Summary | |
---|---|
ProjectParser()
|
Method Summary | |
---|---|
Molecule |
loadFile(File file)
Loads project-file and creates a molecule. |
Molecule |
loadFile(URL urlFileName)
Loads project-file from URL. |
int |
saveToFile(Molecule molsToSave,
File file)
Saves molecules into a project-file. |
int |
saveToFile(Molecule molsToSave,
URL urlFileName)
Saves molecules into a project-file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectParser()
Method Detail |
---|
public int saveToFile(Molecule molsToSave, URL urlFileName)
molsToSave
- list molecules to be save.urlFileName
- name of file on the web to save.
public int saveToFile(Molecule molsToSave, File file)
molsToSave
- list of molecules to be save.file
- name of file to save.
public Molecule loadFile(File file)
file
- file to load.
public Molecule loadFile(URL urlFileName)
urlFileName
- name of file on URL.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |