Class 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
    Author:
    scott
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LineReader

        public LineReader​(java.io.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 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