public abstract class AbstractSptxtWriter extends Object
| Constructor and Description |
|---|
AbstractSptxtWriter(Writer writer,
PeakList.Precision precision) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract String |
formatAnnotations(int peakIndex,
PeakList<? extends PeakAnnotation> peakList) |
protected String |
formatIntensity(double intensity) |
protected String |
formatMz(double mz) |
void |
setIntensityFormat(NumberFormat intensityFormat) |
void |
setMzFormat(NumberFormat mzFormat) |
void |
write(PeakList<? extends PeakAnnotation> peakList,
Peptide peptide,
Collection<String> proteinAccessionNumbers) |
protected void |
writeComment(PeakList peakList,
Peptide peptide,
Writer writer,
Collection<String> proteinAccessionNumbers) |
protected abstract void |
writeLibId(PeakList peakList,
Peptide peptide,
Writer writer) |
protected void |
writeName(PeakList peakList,
Peptide peptide,
Writer writer) |
protected void |
writePeaks(PeakList<? extends PeakAnnotation> peakList,
Writer writer) |
public AbstractSptxtWriter(Writer writer, PeakList.Precision precision)
public void setMzFormat(NumberFormat mzFormat)
public void setIntensityFormat(NumberFormat intensityFormat)
public void write(PeakList<? extends PeakAnnotation> peakList, Peptide peptide, Collection<String> proteinAccessionNumbers) throws IOException
IOExceptionprotected void writePeaks(PeakList<? extends PeakAnnotation> peakList, Writer writer) throws IOException
IOExceptionprotected abstract String formatAnnotations(int peakIndex, PeakList<? extends PeakAnnotation> peakList) throws IOException
IOExceptionprotected void writeComment(PeakList peakList, Peptide peptide, Writer writer, Collection<String> proteinAccessionNumbers) throws IOException
IOExceptionprotected abstract void writeLibId(PeakList peakList, Peptide peptide, Writer writer) throws IOException
IOExceptionprotected void writeName(PeakList peakList, Peptide peptide, Writer writer) throws IOException
IOExceptionprotected String formatMz(double mz)
protected String formatIntensity(double intensity)
public void close()
throws IOException
IOExceptionCopyright © 2016. All Rights Reserved.