// need to use LittleEndianDataInputStream instead of normal
// Java DataInputStream, which is big-endian.
LittleEndianDataInputStream dis = new LittleEndianDataInputStream(
dumpStream);
for (int i = 0; i < numOfDataPoints; i++) {
double mz = dis.readDouble();
double intensity = dis.readDouble();
completeDataPoints[i] = new SimpleDataPoint(mz, intensity);
}
boolean centroided = ScanUtils.isCentroided(completeDataPoints);