Package cnuphys.magfield.converter
Class AsciiReader
java.lang.Object
cnuphys.magfield.converter.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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionAsciiReader(File file) ConstructorAsciiReader(File file, int val) Constructor
- 
Method SummaryModifier and TypeMethodDescriptionabstract voiddone()Done readingintprotected abstract voidprocessLine(String line) Process one non comment line from the file.voidstop()Stop the reading
- 
Field Details- 
iValpublic int iVal
 
- 
- 
Constructor Details- 
AsciiReaderConstructor- Parameters:
- file- the ascii file to be processed
- Throws:
- FileNotFoundException
 
- 
AsciiReaderConstructor- Parameters:
- file- the ascii file to be processed
- Throws:
- FileNotFoundException
 
 
- 
- 
Method Details- 
stoppublic void stop()Stop the reading
- 
processLineProcess one non comment line from the file.- Parameters:
- line- the line to be processed.
 
- 
getNonCommentLineCountpublic int getNonCommentLineCount()- Returns:
- the nonCommentLineCount
 
- 
donepublic abstract void done()Done reading
 
-