public class MspReader extends MsLibReader
| Modifier and Type | Class and Description |
|---|---|
static class |
MspReader.Builder |
AbstractMsReader.ParseContextacceptUnsortedSpectra, precisionEMPTY_READER| Modifier and Type | Method and Description |
|---|---|
static MspReader.Builder |
newBuilder(File file,
PeakList.Precision precision)
Factory method to create a Builder for creating a MspReader to read an msp file from
file |
static MspReader.Builder |
newBuilder(Reader reader,
URI source,
PeakList.Precision precision)
Factory method to create a Builder for creating a MspReader to read an msp file from the
reader |
handlePeakLine, handleTagLine, handleUnknownLine, parseHeader, parseNextEntry, parseUnknownTagacceptUnsortedSpectra, addPeaksToSpectrum, addPeakToSpectrum, close, getContext, getHeader, hasNext, init, nextpublic static MspReader.Builder newBuilder(File file, PeakList.Precision precision) throws IOException
filefile - the file that is to be readIOExceptionpublic static MspReader.Builder newBuilder(Reader reader, URI source, PeakList.Precision precision)
readerreader - the reader that is to be readsource - the source of the spectraCopyright © 2016. All Rights Reserved.