com.compomics.util.experiment.io.identifications.idfilereaders
Class AndromedaIdfileReader
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.io.identifications.idfilereaders.AndromedaIdfileReader
- All Implemented Interfaces:
- IdfileReader, Serializable, Cloneable
public class AndromedaIdfileReader
- extends ExperimentObject
- implements IdfileReader
This IdfileReader reads identifications from an Andromeda result file.
- Author:
- Marc Vaudel
- See Also:
- Serialized Form
Method Summary |
void |
close()
Closes the file reader. |
HashSet<SpectrumMatch> |
getAllSpectrumMatches(JProgressBar jProgressBar)
This methods retrieves all the identifications from an identification
file as a list of spectrum matches It is very important to close the file
reader after creation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AndromedaIdfileReader
public AndromedaIdfileReader(File resFile,
JProgressBar jProgressBar)
throws FileNotFoundException,
IOException
- Constructor for an Andromeda result file reader.
- Parameters:
resFile
- jProgressBar
-
- Throws:
FileNotFoundException
IOException
getAllSpectrumMatches
public HashSet<SpectrumMatch> getAllSpectrumMatches(JProgressBar jProgressBar)
throws IOException,
IllegalArgumentException,
Exception
- Description copied from interface:
IdfileReader
- This methods retrieves all the identifications from an identification
file as a list of spectrum matches It is very important to close the file
reader after creation.
- Specified by:
getAllSpectrumMatches
in interface IdfileReader
- Parameters:
jProgressBar
- a progress bar displaying the progress (can be null)
- Returns:
- a list of spectrum matches
- Throws:
IOException
- exception thrown whenever an error occurred while
reading the file
IllegalArgumentException
- exception thrown whenever an error occurred while
parsing the file
Exception
- exception thrown whenever an error occurred while
working with the file
close
public void close()
throws IOException
- Description copied from interface:
IdfileReader
- Closes the file reader.
- Specified by:
close
in interface IdfileReader
- Throws:
IOException
Copyright © 2012. All Rights Reserved.