public class AplFileWriter extends Object implements AutoCloseable
Constructor and Description |
---|
AplFileWriter()
Empty default constructor
|
AplFileWriter(File destinationFile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
writeSpectrum(String spectrumTitle,
Spectrum spectrum,
FragmentationMethod fragmentationMethod,
int charge)
Writes the given spectrum to the file.
|
public AplFileWriter()
public AplFileWriter(File destinationFile)
destinationFile
- The file where to write.public void writeSpectrum(String spectrumTitle, Spectrum spectrum, FragmentationMethod fragmentationMethod, int charge)
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.public void close()
close
in interface AutoCloseable
Copyright © 2021. All rights reserved.