Class LineBatch


  • public class LineBatch
    extends java.lang.Object
    Batch of consecutive lines read from a stream. Each batch contains the line number from the stream where the batch starts.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static LineBatch EMPTY
      An empty batch with no lines and -1 line number.
    • Constructor Summary

      Constructors 
      Constructor Description
      LineBatch​(java.util.List<java.lang.String> theLines, long theLineNumber)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getLineNumber()
      Line number for the fist line in the batch.
      java.util.List<java.lang.String> getLines()
      The list of lines.
      • Methods inherited from class java.lang.Object

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

      • EMPTY

        public static LineBatch EMPTY
        An empty batch with no lines and -1 line number.
    • Constructor Detail

      • LineBatch

        public LineBatch​(java.util.List<java.lang.String> theLines,
                         long theLineNumber)
    • Method Detail

      • getLines

        public java.util.List<java.lang.String> getLines()
        The list of lines.
      • getLineNumber

        public long getLineNumber()
        Line number for the fist line in the batch.