+ if (filename.endsWith("eeprom")) {
+ FileInputStream in = new FileInputStream(file);
+ return new AltosDataPointReader(new AltosEepromIterable(in));
+ } else if (filename.endsWith("telem")) {
+ FileInputStream in = new FileInputStream(file);
+ return new AltosDataPointReader(new AltosTelemetryIterable(in));
+ } else if (filename.endsWith("csv")) {
+ return new AltosCsvReader(new FileReader(file));
+ } else {
+ throw new FileNotFoundException();
+ }