|
||||||||||
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(File utilitiesFile)
Method which loads an experiment |
void |
save(File file,
MsExperiment experiment)
Method which saves an experiment |
void |
saveIdentifications(File file,
MsExperiment experiment)
Method which saves an experiment identifications (spectra are removed) |
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(File file, MsExperiment experiment) throws IOException
file
- The destination fileexperiment
- The experiment to be saved
IOException
- Exception thrown whenever an error is encountered while writing the filepublic void saveIdentifications(File file, MsExperiment experiment) throws IOException, uk.ac.ebi.jmzml.xml.io.MzMLUnmarshallerException
file
- The destination fileexperiment
- The experiment to be saved
IOException
- Exception thrown whenever an error is encountered while writing the file
uk.ac.ebi.jmzml.xml.io.MzMLUnmarshallerException
public MsExperiment loadExperiment(File utilitiesFile) throws IOException, ClassNotFoundException
utilitiesFile
- File to import
IOException
- Exception thrown if a problem occured while reading the file
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 |