fracpete / jcamp-dx

Reference implemention of the IUPAC JCAMP-DX spectroscopy data standard. Fork of https://sourceforge.net/projects/jcamp-dx/
Other
7 stars 7 forks source link

Support of Parameter Values #5

Closed laeubi closed 5 years ago

laeubi commented 5 years ago

JCAMPDX Files (e.g. from Bruker BioSpin GmbH) can contain just parameters with

##DATATYPE= Parameter Values

Currently this leads to an exception, with this change you can read these files like this:

JCAMPBlock parameters = new JCAMPBlock([file input as string]);
for(JCAMPDataRecord jcampDataRecord : parameters.getAllDataRecords()) {
    System.out.println(jcampDataRecord.getKey() + ": " + jcampDataRecord.getContent());
}