@Override public void fill(FloatOption option) throws CsvFormatException, IOException { seekBuffer(); fill0(option, true); }
@Override public void fill(ShortOption option) throws CsvFormatException, IOException { seekBuffer(); fill0(option, true); }
@Override public void fill(DecimalOption option) throws CsvFormatException, IOException { seekBuffer(); fill0(option, true); }
@Override public void fill(ByteOption option) throws CsvFormatException, IOException { seekBuffer(); fill0(option, true); }
@Override public void fill(DoubleOption option) throws CsvFormatException, IOException { seekBuffer(); fill0(option, true); }
@Override public void fill(DateOption option) throws CsvFormatException, IOException { seekBuffer(); fill0(option, true); }
@Override public void fill(IntOption option) throws CsvFormatException, IOException { seekBuffer(); fill0(option, true); }
@Override public void fill(LongOption option) throws CsvFormatException, IOException { seekBuffer(); fill0(option, true); }
@Override public void fill(DateTimeOption option) throws CsvFormatException, IOException { seekBuffer(); fill0(option, true); }
@SuppressWarnings("deprecation") @Override public void fill(StringOption option) throws CsvFormatException, IOException { seekBuffer(); if (lineBuffer.hasRemaining()) { String value = lineBuffer.toString(); option.modify(value); } else { option.setNull(); } }
@SuppressWarnings("deprecation") @Override public void fill(BooleanOption option) throws CsvFormatException, IOException { seekBuffer(); if (lineBuffer.hasRemaining()) { boolean value = trueFormat.contentEquals(lineBuffer); option.modify(value); } else { option.setNull(); } }
@Override public void endRecord() throws CsvFormatException, IOException { if (cellBeginPositions.remaining() > 1) { seekBuffer(); throw new CsvFormatException(new Status( Reason.TOO_LONG_RECORD, path, currentPhysicalHeadLine, currentRecordNumber, cellBeginPositions.position(), CHAR_END_OF_RECORD, lineBuffer.toString()), null); } }