Updates
[debian/openrocket] / src / net / sf / openrocket / file / RocketSaver.java
index b6f8b607c15d999a7f12f7d2087319013d3a2a28..5c18bb8de53230e6912dcbb61ed2134f57d18f77 100644 (file)
@@ -68,6 +68,16 @@ public abstract class RocketSaver {
        
        
        
+       /**
+        * Provide an estimate of the file size when saving the document with the
+        * specified options.  This is used as an indication to the user and when estimating
+        * file save progress.
+        * 
+        * @param doc           the document.
+        * @param options       the save options, compression must be taken into account.
+        * @return                      the estimated number of bytes the storage would take.
+        */
+       public abstract long estimateFileSize(OpenRocketDocument doc, StorageOptions options);