Package com.imsl.io
The class AbstractFlatFile is used to read a data file and return a
java.sql.ResultSet
object.
The ResultSet object is normally used by JDBC to return the result of an SQL query.
Since AbstractFlatFile is abstract it cannot be used directly.
The class FlatFile extends AbstractFlatFile
and is used to read flat text files.
Typical flat files are comma separated files (CSV files) and space separated files.
The class FlatFile uses the class Tokenizer
class to split tokens on a line. This class can be extended to handle other types of flat files.
The AbstractFlatFile can also be extended to read binary files.
It provides the support for the required members of the java.sql.ResultSet
interface, but the actual reading of the binary files must be done in user supplied code.
The class MPSReader is used to read linear programming problems
written in the standard MPS file format.
-
ClassDescriptionReads a text or binary file as a
ResultSet.ASQLExceptionthrown by theAbstractFlatFileclass.ASQLFeatureNotSupportedExceptionthrown by theAbstractFlatFileclass.Reads a text file as aResultSet.Defines a method that parses aStringinto anObject.Reads a linear programming problem from an MPS file.An element in the sparse contraint matrix.The MPS file is invalid.Breaks a line into tokens.