public class MZXMLPeaksDecoder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MZXMLPeaksDecoder.DecodedData |
| Modifier and Type | Method and Description |
|---|---|
static MZXMLPeaksDecoder.DecodedData |
decode(byte[] bytesIn,
int lengthIn,
int precision,
PeaksCompression compression)
Converts a base64 encoded mz-intensity string from used in mzXML and mzML
files to an array of doubles.
|
static MZXMLPeaksDecoder.DecodedData |
decode(byte[] bytesIn,
int precision,
PeaksCompression compression)
Convenience shortcut, which assumes the whole
bytesIn array is useful data. |
public static MZXMLPeaksDecoder.DecodedData decode(byte[] bytesIn, int precision, PeaksCompression compression) throws FileParsingException, IOException, DataFormatException
bytesIn array is useful data.bytesIn - precision - compression - FileParsingExceptionIOExceptionDataFormatExceptionpublic static MZXMLPeaksDecoder.DecodedData decode(byte[] bytesIn, int lengthIn, int precision, PeaksCompression compression) throws DataFormatException, IOException, FileParsingException
bytesIn - Byte array, decoded from a base64 encoded string
E.g. like: eNoNxltIkwEYBuAOREZFhrCudGFbbraTU+Zmue...lengthIn - length of data to be treated as mz/int valuesprecision - allowed values: 32 and 64compression - null or PeaksCompression.NONE have the
same effect. Otherwise the binary data will be inflated according to the compression rules.DataFormatExceptionIOExceptionFileParsingExceptionCopyright © 2017. All rights reserved.