int dec = myHeader.getFieldDecimalCount(i);
// create the appropriate type based on the dbase type
switch (myHeader.getFieldType(i)) {
case 'L':
myFieldTypes[i] =
new AttributeType(AttributeType.BOOLEAN, len, dec);
break;
case 'C':
myFieldTypes[i] =
new AttributeType(AttributeType.STRING, len, dec);
break;
case 'D':
myFieldTypes[i] =
new AttributeType(AttributeType.TIMESTAMP, len, dec);
break;
case 'N':
myFieldTypes[i] =
new AttributeType(AttributeType.FLOAT, len, dec);
break;
case 'F':
// the -1 decimal length indicates that this is a 'F'
// field when writing the record in DbaseFileWriter
myFieldTypes[i] =
new AttributeType(AttributeType.FLOAT, len, -1);
break;
default:
myFieldTypes[i] = null;
break;
}