private static String getFieldOrDefault(FieldMap fields, int tag, String defaultValue) { if (fields.isSetField(tag)) { try { return fields.getString(tag); } catch (final FieldNotFound e) { // ignore, should never happen return null; } } else { return defaultValue; } }
private static String getFieldOrDefault(FieldMap fields, int tag, String defaultValue) { if (fields.isSetField(tag)) { try { return fields.getString(tag); } catch (final FieldNotFound e) { // ignore, should never happen return null; } } else { return defaultValue; } }
public LocalDateTime getUtcTimeStamp(int field) throws FieldNotFound { try { return UtcTimestampConverter.convertToLocalDateTime(getString(field)); } catch (final FieldConvertError e) { throw newIncorrectDataException(e, field); } }
public LocalTime getUtcTimeOnly(int field) throws FieldNotFound { try { return UtcTimeOnlyConverter.convertToLocalTime(getString(field)); } catch (final FieldConvertError e) { throw newIncorrectDataException(e, field); } }
public char getChar(int field) throws FieldNotFound { try { return CharConverter.convert(getString(field)); } catch (final FieldConvertError e) { throw newIncorrectDataException(e, field); } }
public int getInt(int field) throws FieldNotFound { try { return IntConverter.convert(getString(field)); } catch (final FieldConvertError e) { throw newIncorrectDataException(e, field); } }
public double getDouble(int field) throws FieldNotFound { try { return DoubleConverter.convert(getString(field)); } catch (final FieldConvertError e) { throw newIncorrectDataException(e, field); } }
public LocalDate getUtcDateOnly(int field) throws FieldNotFound { try { return UtcDateOnlyConverter.convertToLocalDate(getString(field)); } catch (final FieldConvertError e) { throw newIncorrectDataException(e, field); } }
public LocalTime getUtcTimeOnly(int field) throws FieldNotFound { try { return UtcTimeOnlyConverter.convertToLocalTime(getString(field)); } catch (final FieldConvertError e) { throw newIncorrectDataException(e, field); } }
public double getDouble(int field) throws FieldNotFound { try { return DoubleConverter.convert(getString(field)); } catch (final FieldConvertError e) { throw newIncorrectDataException(e, field); } }
public BigDecimal getDecimal(int field) throws FieldNotFound { try { return DecimalConverter.convert(getString(field)); } catch (final FieldConvertError e) { throw newIncorrectDataException(e, field); } }
public Date getUtcDateOnly(int field) throws FieldNotFound { try { return UtcDateOnlyConverter.convert(getString(field)); } catch (final FieldConvertError e) { throw newIncorrectDataException(e, field); } }
public boolean getBoolean(int field) throws FieldNotFound { try { return BooleanConverter.convert(getString(field)); } catch (final FieldConvertError e) { throw newIncorrectDataException(e, field); } }
public int getInt(int field) throws FieldNotFound { try { return IntConverter.convert(getString(field)); } catch (final FieldConvertError e) { throw newIncorrectDataException(e, field); } }
public boolean getBoolean(int field) throws FieldNotFound { try { return BooleanConverter.convert(getString(field)); } catch (final FieldConvertError e) { throw newIncorrectDataException(e, field); } }
public int getInt(int field) throws FieldNotFound { try { return IntConverter.convert(getString(field)); } catch (final FieldConvertError e) { throw newIncorrectDataException(e, field); } }
public LocalDate getUtcDateOnly(int field) throws FieldNotFound { try { return UtcDateOnlyConverter.convertToLocalDate(getString(field)); } catch (final FieldConvertError e) { throw newIncorrectDataException(e, field); } }
public boolean getBoolean(int field) throws FieldNotFound { try { return BooleanConverter.convert(getString(field)); } catch (final FieldConvertError e) { throw newIncorrectDataException(e, field); } }
public Date getUtcTimeStamp(int field) throws FieldNotFound { try { return UtcTimestampConverter.convert(getString(field)); } catch (final FieldConvertError e) { throw newIncorrectDataException(e, field); } }
public char getChar(int field) throws FieldNotFound { try { return CharConverter.convert(getString(field)); } catch (final FieldConvertError e) { throw newIncorrectDataException(e, field); } }