final String fieldType = fld.attributeValue("type");
final String fieldOffset = fld.attributeValue("offset");
final String fieldLength = fld.attributeValue("length");
if (fieldOffset != null)
pos = offset + Integer.parseInt(fieldOffset);
final Converter conv = _converters.get(fieldType);
if (conv == null) {
LOG.error("no converter for " + fieldType);
continue;
}
final Object fieldData =
conv.convert(data, pos, fieldLength == null ? 0 : Integer.parseInt(fieldLength),
ppos);
pos = ppos.getIndex();
if (fieldData != null && fieldName != null)
setFieldData(obj, fieldData, fieldName);
LOG.debug(fieldName + " -> " + fieldData);