When parsing the DataSet, the record type must obviously be known internally. However it is not exposed externally, so the client code must check a set of record types manually. See the Camel Flatpack code below which is hard coded to check "header" and "trailer". This would be simplified, if it the record type was exposed...
2009-07-27 09:01:16 UTC in FlatPack Java API For Flat Files