Skip navigation links

Package com.imsl.io

Methods for reading files.

See: Description

Package com.imsl.io Description

Methods for reading files.

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.

Skip navigation links

Copyright © 2020 Rogue Wave Software. All rights reserved.