Class AplFileWriter
java.lang.Object
com.compomics.util.experiment.io.mass_spectrometry.apl.AplFileWriter
- All Implemented Interfaces:
AutoCloseable
public class AplFileWriter extends Object implements AutoCloseable
This class writes spectrum files in Andromeda Peak List (APL) format.
- Author:
- Marc Vaudel
-
Constructor Summary
Constructors Constructor Description AplFileWriter()
Empty default constructorAplFileWriter(File destinationFile)
Constructor. -
Method Summary
Modifier and Type Method Description void
close()
void
writeSpectrum(String spectrumTitle, Spectrum spectrum, FragmentationMethod fragmentationMethod, int charge)
Writes the given spectrum to the file.
-
Constructor Details
-
AplFileWriter
public AplFileWriter()Empty default constructor -
AplFileWriter
Constructor.- Parameters:
destinationFile
- The file where to write.
-
-
Method Details
-
writeSpectrum
public void writeSpectrum(String spectrumTitle, Spectrum spectrum, FragmentationMethod fragmentationMethod, int charge)Writes the given spectrum to the file.- Parameters:
spectrumTitle
- The title of the spectrum to write.spectrum
- The spectrum to write.fragmentationMethod
- The fragmentation method.charge
- The charge to consider for this spectrum.
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-