public class NekReader
extends java.lang.Object
Constructor and Description |
---|
NekReader()
Nullary constructor.
|
Modifier and Type | Method and Description |
---|---|
ProblemProperties |
getLastProperties()
Returns the last ProblemProperties object constructed by the NekReader.
|
java.util.ArrayList<Component> |
loadREAFile(java.io.File reaFile)
Reads in a reafile, and returns an ArrayList of Components representing
the contents of the file.
|
java.util.ArrayList<java.lang.String> |
readFileLines(java.io.File file)
Utility class to read in a reafile and return its contents as an
ArrayList of Strings, broken at each newline character.
|
public java.util.ArrayList<Component> loadREAFile(java.io.File reaFile) throws java.io.FileNotFoundException, java.io.IOException
reaFile
- The Nek5000 reafile.java.io.IOException
- Thrown when readFileLines(...) fails to read or close its
FileInputStreamjava.io.FileNotFoundException
- Thrown when readFileLines(...) fails to find the input filepublic java.util.ArrayList<java.lang.String> readFileLines(java.io.File file) throws java.io.FileNotFoundException, java.io.IOException
file
- The reafile to break up.java.io.FileNotFoundException
- Thrown when input file cannot be foundjava.io.IOException
- Thrown when the FileInputStream cannot be read or closedpublic ProblemProperties getLastProperties()