You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@taverna.apache.org by st...@apache.org on 2016/02/13 14:55:26 UTC

[2/6] incubator-taverna-osgi git commit: TAVERNA-893 download-api to Use modern types (URI, Path)

TAVERNA-893 download-api to Use modern types (URI, Path)

Also removed @author as we don't maintain those under ASF


Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/commit/d6c43d6f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/tree/d6c43d6f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/diff/d6c43d6f

Branch: refs/heads/master
Commit: d6c43d6fa11f33572555b59d8e49fbdc2c7d8ee2
Parents: 3fd0508
Author: Stian Soiland-Reyes <st...@apache.org>
Authored: Fri Feb 12 17:46:50 2016 +0000
Committer: Stian Soiland-Reyes <st...@apache.org>
Committed: Fri Feb 12 17:46:50 2016 +0000

----------------------------------------------------------------------
 .../org/apache/taverna/download/DownloadManager.java     | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/blob/d6c43d6f/taverna-download-api/src/main/java/org/apache/taverna/download/DownloadManager.java
----------------------------------------------------------------------
diff --git a/taverna-download-api/src/main/java/org/apache/taverna/download/DownloadManager.java b/taverna-download-api/src/main/java/org/apache/taverna/download/DownloadManager.java
index 7992d85..f167596 100644
--- a/taverna-download-api/src/main/java/org/apache/taverna/download/DownloadManager.java
+++ b/taverna-download-api/src/main/java/org/apache/taverna/download/DownloadManager.java
@@ -16,13 +16,12 @@
  */
 package org.apache.taverna.download;
 
-import java.io.File;
-import java.net.URL;
+import java.net.URI;
+import java.nio.file.Path;
 
 /**
  * Download Manager for handling file download and checking the integrity of the download.
  *
- * @author David Withers
  */
 public interface DownloadManager {
 
@@ -43,7 +42,7 @@ public interface DownloadManager {
 	 *             the destination is not a file</li> <li>the destination cannot be written to</li>
 	 *             </ul>
 	 */
-	public void download(URL source, File destination) throws DownloadException;
+	public void download(URI source, Path destination) throws DownloadException;
 
 	/**
 	 * Downloads a file from a URL and checks the integrity of the download by downloading and
@@ -74,7 +73,7 @@ public interface DownloadManager {
 	 *             </li> <li>the destination is not a file</li> <li>the checksums do no match</li>
 	 *             </ul>
 	 */
-	public void download(URL source, File destination, String digestAlgorithm)
+	public void download(URI source, Path destination, String digestAlgorithm)
 			throws DownloadException;
 
 	/**
@@ -106,7 +105,7 @@ public interface DownloadManager {
 	 *                does not exist</li> <li>the checksums do no match</li>
 	 *                </ul>
 	 */
-	public void download(URL source, File destination, String digestAlgorithm, URL digestSource)
+	public void download(URI source, Path destination, String digestAlgorithm, URI digestSource)
 			throws DownloadException;
 
 }