diff --git a/src/org/fdroid/fdroid/net/Downloader.java b/src/org/fdroid/fdroid/net/Downloader.java index 4a9b96899..593777d52 100644 --- a/src/org/fdroid/fdroid/net/Downloader.java +++ b/src/org/fdroid/fdroid/net/Downloader.java @@ -30,7 +30,7 @@ public abstract class Downloader { public static final String EVENT_PROGRESS = "downloadProgress"; - public abstract InputStream inputStream() throws IOException; + public abstract InputStream getInputStream() throws IOException; // The context is required for opening the file to write to. Downloader(String destFile, Context ctx) @@ -120,13 +120,13 @@ public abstract class Downloader { Log.d(TAG, "Downloading from stream"); InputStream input = null; try { - input = inputStream(); + input = getInputStream(); // Getting the input stream is slow(ish) for HTTP downloads, so we'll check if // we were interrupted before proceeding to the download. throwExceptionIfInterrupted(); - copyInputToOutputStream(inputStream()); + copyInputToOutputStream(getInputStream()); } finally { Utils.closeQuietly(outputStream); Utils.closeQuietly(input); diff --git a/src/org/fdroid/fdroid/net/HttpDownloader.java b/src/org/fdroid/fdroid/net/HttpDownloader.java index 50fc41a65..b9284d7c3 100644 --- a/src/org/fdroid/fdroid/net/HttpDownloader.java +++ b/src/org/fdroid/fdroid/net/HttpDownloader.java @@ -40,7 +40,7 @@ public class HttpDownloader extends Downloader { } @Override - public InputStream inputStream() throws IOException { + public InputStream getInputStream() throws IOException { return connection.getInputStream(); }