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 Details

    • AplFileWriter

      public AplFileWriter()
      Empty default constructor
    • AplFileWriter

      public AplFileWriter​(File destinationFile)
      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 interface AutoCloseable