Add another convenience overload for CordovaResourceApi.copyResource

This commit is contained in:
Andrew Grieve 2014-02-26 20:20:10 -05:00
parent dd6bf568d1
commit 5fb83e7f52

View File

@ -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) {