liquibase.util.csv.opencsv.stream.reader
Class LineReader
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.