import tim.prune.App;
import tim.prune.data.Altitude;
+import tim.prune.data.SourceInfo;
/**
* Class to handle the loading of zipped xml files
}
else {
// Send back to app
+ SourceInfo sourceInfo = new SourceInfo(inFile,
+ (handler instanceof GpxHandler?SourceInfo.FILE_TYPE.GPX:SourceInfo.FILE_TYPE.KML));
_app.informDataLoaded(handler.getFieldArray(), handler.getDataArray(),
- Altitude.Format.METRES, inFile.getName());
+ Altitude.Format.METRES, sourceInfo);
xmlFound = true;
}
}
}
}
catch (Exception e) {
- System.err.println("Error: " + e.getClass().getName() + " -message= " + e.getMessage());
+ System.err.println("ZipFile Error: " + e.getClass().getName() + " -message= " + e.getMessage());
}
}
else {
// Send back to app
_app.informDataLoaded(handler.getFieldArray(), handler.getDataArray(),
- Altitude.Format.METRES, "gpsies");
+ Altitude.Format.METRES, new SourceInfo("gpsies", SourceInfo.FILE_TYPE.GPSIES));
xmlFound = true;
}
}
}
}
catch (Exception e) {
- System.err.println("Error: " + e.getClass().getName() + " -message= " + e.getMessage());
+ System.err.println("ZipStream Error: " + e.getClass().getName() + " -message= " + e.getMessage());
}
}
}