else if (dataClass == Date.class) result = columns.get(col).dateFormat.fmtIn.parse(res); else
else if (dataClass == Date.class) { Date d = columns.get(col).dateFormat.fmtIn.parse(res); if (d != null && utils.getFaxOptions().dateOffsetSecs != 0) { Calendar cal = Calendar.getInstance(utils.getLocale()); cal.setTime(d); cal.add(Calendar.SECOND, utils.getFaxOptions().dateOffsetSecs); d = cal.getTime(); } result = d; } else
    public Object getData(int col) {        Object result;                if (col >= stringData.length && col < columns.size())            return null;        else if (col >= columns.size())            throw new ArrayIndexOutOfBoundsException(col);        else            result = parsedData[col];                if (result == null) { // Not parsed            String res = getStringData(col);            Class<?> dataClass = columns.get(col).dataClass;                        if (dataClass == String.class) {                result = res;            } else {                res = res.trim();                if (dataClass == Boolean.class)  { // "*" if true, " " otherwise                    result = res.equals("*");                } else if (res.length() > 0) {                    try {                        if (dataClass == Integer.class)                            result = Integer.valueOf(res);                        else if (dataClass == Float.class)                            result = Float.valueOf(res);                        else if (dataClass == Double.class)                            result = Double.valueOf(res);                        else if (dataClass == Date.class)                            result = columns.get(col).dateFormat.fmtIn.parse(res);                        else                            result = res;                    } catch (NumberFormatException e) {                        System.err.println("Not a number: " + res);                        //result = Float.NaN;                        result = nullObject;                    } catch (ParseException e) {                        System.err.println("Not a parseable date: " + res);                        result = nullObject;                    }                    } else                    result = nullObject;            }            parsedData[col] = result;        }                return (result == nullObject) ? null : result;    }