Search in sources :

Example 1 with FileDataSource

use of uk.ac.starlink.util.FileDataSource in project gaiasky by langurmonkey.

the class STILDataProvider method loadData.

@Override
public List<IParticleRecord> loadData(String file, double factor) {
    logger.info(I18n.txt("notif.datafile", file));
    try {
        loadData(new FileDataSource(Settings.settings.data.dataFile(file)), factor);
    } catch (Exception e1) {
        try {
            logger.info("File " + file + " not found in data folder, trying relative path");
            loadData(new FileDataSource(file), factor);
        } catch (Exception e2) {
            logger.error(e1);
            logger.error(e2);
        }
    }
    logger.info(I18n.txt("notif.nodeloader", list.size(), file));
    return list;
}
Also used : FileDataSource(uk.ac.starlink.util.FileDataSource) IOException(java.io.IOException)

Aggregations

IOException (java.io.IOException)1 FileDataSource (uk.ac.starlink.util.FileDataSource)1