Class LineByLineTextReader

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, QuickInfoSupporter, SizeOfHandler, Serializable

    public class LineByLineTextReader
    extends AbstractTextReaderWithEncoding<String>
    Reads the text data, line by line. Allows the reading of very large files.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -encoding <adams.core.base.BaseCharset> (property: encoding)
        The type of encoding to use when reading the file, use empty string for 
        default.
        default: Default
     
    -max-lines <int> (property: maxLines)
        The maximum number of lines to read; using -1 will read all.
        default: -1
        minimum: -1
     
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_MaxLines

        protected int m_MaxLines
        the maximum number of lines to read.
      • m_LineCount

        protected int m_LineCount
        lines read so far.
      • m_Scanner

        protected transient Scanner m_Scanner
        the scanner in use.
    • Constructor Detail

      • LineByLineTextReader

        public LineByLineTextReader()