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 Link icon

    • lcount Link icon

      protected int lcount
  • Constructor Details Link icon

  • Method Details Link icon

    • stop Link icon

      public void stop()
      Stop the reading
    • processLine Link icon

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

      public int getNonCommentLineCount()
      Returns:
      the nonCommentLineCount
    • done Link icon

      public abstract void done()
      Done reading