Package cnuphys.lund

Class AsciiReader

java.lang.Object
cnuphys.lund.AsciiReader

public abstract class AsciiReader extends Object
Simplifies the reading of an ascii file. Assumes comments begin with a "!". This should be extended, and the processLine method overridden.
Author:
heddle
  • Field Details

    • lcount

      protected int lcount
  • Constructor Details

  • Method Details

    • stop

      public void stop()
      Stop the reading
    • processLine

      protected abstract void processLine(String line)
      Process one non comment line from the file.
      Parameters:
      line - the line to be processed.
    • getNonCommentLineCount

      public int getNonCommentLineCount()
      Returns:
      the nonCommentLineCount
    • done

      public abstract void done()
      Done reading