public Object getValue(int columnIndex, boolean nullable) {
    if (current == null) {
      throw new InputOutputException("current record is null");
    }
    Field field = delimitedFormat.getField(columnIndex);
    String textValue = current[columnIndex];
    Object value = field.parse(textValue);
    if ((value == null) && (!nullable)) {
      throw new InputOutputException("value is null on line " + getLineNumber() + " column " + columnIndex);
    }
    return value;
  }