Package com.helger.commons.csv
Class CSVLineReaderKeepCR
- java.lang.Object
-
- com.helger.commons.csv.CSVLineReaderKeepCR
-
- All Implemented Interfaces:
ICSVLineReader
public class CSVLineReaderKeepCR extends Object implements ICSVLineReader
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.- Author:
- scott on 2/19/15., Philip Helger
-
-
Constructor Summary
Constructors Constructor Description CSVLineReaderKeepCR(Reader aReader)Constructor.
-
-
-
Constructor Detail
-
CSVLineReaderKeepCR
public CSVLineReaderKeepCR(@Nonnull @WillNotClose Reader aReader)
Constructor.- Parameters:
aReader- Reader that data will be read from. May not benull. Will not be closed in this class.
-
-
Method Detail
-
readLine
@Nullable public String readLine() throws IOException
Description copied from interface:ICSVLineReaderReads the next line from the Reader.- Specified by:
readLinein interfaceICSVLineReader- Returns:
- Line read from reader or
nullif none is left. - Throws:
IOException- on error from underlyingReader
-
-