Class LineReader

java.lang.Object
com.opencsv.stream.reader.LineReader

public class LineReader extends Object
This class was created for issue #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.
Since:
3.3
Author:
Scott Conway
  • Constructor Details

    • 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 Details

    • readLine

      public String readLine() throws IOException
      Reads the next line from the Reader.
      Returns:
      Line read from reader.
      Throws:
      IOException - On error from BufferedReader