Package javajs.util

Class LimitedLineReader

java.lang.Object
javajs.util.LimitedLineReader

public class LimitedLineReader extends Object
A simple class to read a designated number of bytes from a file and then return them line by line, skipping lines that start with #, and including the \n or \r characters at line ends. Generally useful for determining what sort of data a file contains.
  • Constructor Details

  • Method Details

    • getHeader

      public String getHeader(int n)
    • readLineWithNewline

      public String readLineWithNewline()