cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [2/3] android commit: Add another convenience overload for CordovaResourceApi.copyResource
Date Thu, 27 Feb 2014 01:26:06 GMT
Add another convenience overload for CordovaResourceApi.copyResource


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/5fb83e7f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/5fb83e7f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/5fb83e7f

Branch: refs/heads/master
Commit: 5fb83e7f52e1483001e7c989f6b4b306fe05307c
Parents: dd6bf56
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Wed Feb 26 20:20:10 2014 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Wed Feb 26 20:20:10 2014 -0500

----------------------------------------------------------------------
 framework/src/org/apache/cordova/CordovaResourceApi.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/5fb83e7f/framework/src/org/apache/cordova/CordovaResourceApi.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaResourceApi.java b/framework/src/org/apache/cordova/CordovaResourceApi.java
index ea2a90d..ca4c965 100644
--- a/framework/src/org/apache/cordova/CordovaResourceApi.java
+++ b/framework/src/org/apache/cordova/CordovaResourceApi.java
@@ -346,6 +346,10 @@ public class CordovaResourceApi {
         copyResource(openForRead(sourceUri), outputStream);
     }
 
+    // Added in 3.5.0.
+    public void copyResource(Uri sourceUri, Uri dstUri) throws IOException {
+        copyResource(openForRead(sourceUri), openOutputStream(dstUri));
+    }
     
     private void assertBackgroundThread() {
         if (threadCheckingEnabled) {


Mime
View raw message