439440441442443444445446447448449
buf.put(lineBuffer.position()); } private Status createStatusInDecode(Reason reason, String expected, String actual) { assert reason != null; return new Status( reason, path, currentPhysicalLine, currentRecordNumber, cellBeginPositions.limit(),
773774775776777778779780781782783
option.setNull(); } } private Status createStatusInLine(Reason reason, String expected) { return new Status( reason, path, currentPhysicalHeadLine, currentRecordNumber, cellBeginPositions.position(),
787788789790791792793794795796797
@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(),
800801802803804805806807808809810
} } private void seekBuffer() throws CsvFormatException { if (cellBeginPositions.remaining() < 2) { throw new CsvFormatException(new Status( Reason.TOO_SHORT_RECORD, path, currentPhysicalHeadLine, currentRecordNumber, cellBeginPositions.position() + 1,