|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.experiment.io.ExperimentIO
public class ExperimentIO
This class takes care of the saving and opening of Compomics utilities experiment objects via serialization.
Constructor Summary | |
---|---|
ExperimentIO()
Constructor |
Method Summary | |
---|---|
MsExperiment |
loadExperiment(java.io.File utilitiesFile)
Method which loads an experiment |
void |
save(java.io.File file,
MsExperiment experiment)
Method which saves an experiment |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExperimentIO()
Method Detail |
---|
public void save(java.io.File file, MsExperiment experiment) throws java.io.IOException
file
- The destination fileexperiment
- The experiment to be saved
java.io.IOException
- Exception thrown whenever an error is encountered while writing the filepublic MsExperiment loadExperiment(java.io.File utilitiesFile) throws java.io.IOException, java.lang.ClassNotFoundException
utilitiesFile
- File to import
java.io.IOException
- Exception thrown if a problem occured while reading the file
java.lang.ClassNotFoundException
- Exception thrown if a problem occured while creating the experiment (typically a version issue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |