Package cnuphys.lund
Class AsciiReader
java.lang.Object
cnuphys.lund.AsciiReader
Simplifies the reading of an ascii file. Assumes comments begin with a "!".
This should be extended, and the processLine method overridden.
- Author:
- heddle
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
done()
Done readingint
protected abstract void
processLine
(String line) Process one non comment line from the file.void
stop()
Stop the reading
-
Field Details
-
lcount
protected int lcount
-
-
Constructor Details
-
AsciiReader
Constructor- Parameters:
file
- the ascii file to be processed- Throws:
FileNotFoundException
-
-
Method Details
-
stop
public void stop()Stop the reading -
processLine
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
-