Package com.asakusafw.runtime.io.csv.CsvFormatException

Examples of com.asakusafw.runtime.io.csv.CsvFormatException.Status


        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(),
View Full Code Here


            option.setNull();
        }
    }

    private Status createStatusInLine(Reason reason, String expected) {
        return new Status(
                reason,
                path,
                currentPhysicalHeadLine,
                currentRecordNumber,
                cellBeginPositions.position(),
View Full Code Here

    @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(),
View Full Code Here

        }
    }

    private void seekBuffer() throws CsvFormatException {
        if (cellBeginPositions.remaining() < 2) {
            throw new CsvFormatException(new Status(
                    Reason.TOO_SHORT_RECORD,
                    path,
                    currentPhysicalHeadLine,
                    currentRecordNumber,
                    cellBeginPositions.position() + 1,
View Full Code Here

TOP

Related Classes of com.asakusafw.runtime.io.csv.CsvFormatException.Status

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.