Package com.opencsv.stream.reader
Class LineReader
- java.lang.Object
-
- com.opencsv.stream.reader.LineReader
-
public class LineReader extends java.lang.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
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
keepCarriageReturns
private java.io.BufferedReader
reader
-
Constructor Summary
Constructors Constructor Description LineReader(java.io.BufferedReader reader, boolean keepCarriageReturns)
LineReader constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
readLine()
Reads the next line from the Reader.private java.lang.String
readUntilNewline()
-
-
-
Method Detail
-
readLine
public java.lang.String readLine() throws java.io.IOException
Reads the next line from the Reader.- Returns:
- Line read from reader.
- Throws:
java.io.IOException
- On error from BufferedReader
-
readUntilNewline
private java.lang.String readUntilNewline() throws java.io.IOException
- Throws:
java.io.IOException
-
-