public class SptxtReader extends MsLibReader
| Modifier and Type | Class and Description |
|---|---|
static class |
SptxtReader.Builder |
AbstractMsReader.ParseContextacceptUnsortedSpectra, precisionEMPTY_READER| Constructor and Description |
|---|
SptxtReader(File file,
PeakList.Precision precision) |
| Modifier and Type | Method and Description |
|---|---|
static SptxtReader.Builder |
newBuilder(File file,
PeakList.Precision precision)
Factory method to create a Builder for creating a SptxtReader to read an sptxt file from
file |
static SptxtReader.Builder |
newBuilder(Reader reader,
URI source,
PeakList.Precision precision)
Factory method to create a Builder for creating a SptxtReader to read an sptxt file from the
reader |
handlePeakLine, handleTagLine, handleUnknownLine, parseHeader, parseNextEntry, parseUnknownTagacceptUnsortedSpectra, addPeaksToSpectrum, addPeakToSpectrum, close, getContext, getHeader, hasNext, init, nextpublic SptxtReader(File file, PeakList.Precision precision) throws IOException
IOExceptionpublic static SptxtReader.Builder newBuilder(File file, PeakList.Precision precision) throws IOException
filefile - the file that is to be readIOExceptionpublic static SptxtReader.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.