class QuotedLineBreakAccessor extends HdfsAtomicDataAccessor {

    @Override
    public OneRow readNextObject() throws IOException {
        if (super.readNextObject() == null) /* check if working segment */ {
            return null;
        }

        String nextLine = readLine();
        if (nextLine == null) /* EOF */ {
            return null;
        }

        if (fileAsRow) {
            // Wrap text around quotes, and escape single quotes
            nextLine = context.getGreenplumCSV().toCsvField(nextLine, firstLine, lastLine);
            firstLine = false;
        }

        return new OneRow(null, nextLine);
    }

}