create changelog entry
[debian/openrocket] / android / src / net / sf / openrocket / android / thrustcurve / DownloadResponseParser.java
index 82997829f3fc3bd0f76781711c8b2f5b34475d9a..abf9d99f87a6a1e6952b49e8da98e9fed5c1164f 100644 (file)
@@ -2,6 +2,8 @@ package net.sf.openrocket.android.thrustcurve;
 \r
 import java.io.InputStream;\r
 \r
+import net.sf.openrocket.android.util.AndroidLogWrapper;\r
+\r
 import org.xml.sax.Attributes;\r
 \r
 import android.sax.Element;\r
@@ -9,13 +11,10 @@ import android.sax.EndElementListener;
 import android.sax.EndTextElementListener;\r
 import android.sax.RootElement;\r
 import android.sax.StartElementListener;\r
-import android.util.Log;\r
 import android.util.Xml;\r
 \r
 public class DownloadResponseParser {\r
 \r
-       private static final String TAG = "DownloadResponseParser";\r
-\r
        private static final String thrustcurveURI = "http://www.thrustcurve.org/2009/DownloadResponse";\r
 \r
        private static final String root_tag = "download-response";\r
@@ -45,7 +44,7 @@ public class DownloadResponseParser {
                rootEl.setStartElementListener(\r
                                new StartElementListener() {\r
                                        public void start(Attributes arg0) {\r
-                                               Log.d(TAG,"Start Element error");\r
+                                               AndroidLogWrapper.d(TAG,"Start Element error");\r
                                                ret.setError("IsError");\r
                                        }\r
                                }\r
@@ -57,7 +56,7 @@ public class DownloadResponseParser {
                                new StartElementListener() {\r
                                        @Override\r
                                        public void start(Attributes arg0) {\r
-                                               Log.d(TAG,"Start Element result");\r
+                                               AndroidLogWrapper.d(DownloadResponseParser.class,"Start Element result");\r
                                                currentMotor.init();\r
                                        }\r
                                }\r
@@ -73,11 +72,11 @@ public class DownloadResponseParser {
                                                        try {\r
                                                                s = Base64Decoder.decodeData(current_data.s);\r
                                                        } catch ( Exception ex ) {\r
-                                                               Log.d(TAG,"base64: " + ex.getMessage());\r
+                                                               AndroidLogWrapper.d(DownloadResponseParser.class,"base64: " + ex.getMessage());\r
                                                        }\r
                                                        currentMotor.decodeFile( s );\r
+                                                       ret.add((MotorBurnFile)currentMotor.clone());\r
                                                }\r
-                                               ret.add((MotorBurnFile)currentMotor.clone());\r
                                        }\r
                                }\r
                                );\r