+
+ public static AltosStateIterable iterable(File file) {
+ try {
+ if (file.getName().endsWith("telem"))
+ return new AltosTelemetryFile(new FileInputStream(file));
+ else
+ return new AltosEepromFile(new FileReader(file));
+ } catch (Exception e) {
+ return null;
+ }
+ }