liquibase.util.csv.opencsv.stream.reader
Class LineReader

java.lang.Object
  extended by liquibase.util.csv.opencsv.stream.reader.LineReader

public class LineReader
extends Object

This class was created for issue #106 (https://sourceforge.net/p/opencsv/bugs/106/) where carriage returns were being removed. This class allows the user to determine if they wish to keep or remove them from the data being read.

Created by scott on 2/19/15.


Constructor Summary
LineReader(BufferedReader reader, boolean keepCarriageReturns)
          LineReader constructor.
 
Method Summary
 String readLine()
          Reads the next line from the Reader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineReader

public LineReader(BufferedReader reader,
                  boolean keepCarriageReturns)
LineReader constructor.

Parameters:
reader - - Reader that data will be read from.
keepCarriageReturns - - true if carriage returns should remain in the data, false to remove them.
Method Detail

readLine

public String readLine()
                throws IOException
Reads the next line from the Reader.

Returns:
- Line read from reader.
Throws:
IOException - - on error from BufferedReader


Copyright © 2016 Liquibase.org. All rights reserved.