From 78884719823fb73d268bf9767189e85e7f916e41 Mon Sep 17 00:00:00 2001 From: snowleo Date: Sun, 23 Oct 2011 21:45:01 +0200 Subject: Statemachine for installation wizard (WIP) --- EssentialsUpdate/src/com/earth2me/essentials/update/GetFile.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'EssentialsUpdate/src/com/earth2me/essentials/update/GetFile.java') diff --git a/EssentialsUpdate/src/com/earth2me/essentials/update/GetFile.java b/EssentialsUpdate/src/com/earth2me/essentials/update/GetFile.java index 888950f34..8727d2f3b 100644 --- a/EssentialsUpdate/src/com/earth2me/essentials/update/GetFile.java +++ b/EssentialsUpdate/src/com/earth2me/essentials/update/GetFile.java @@ -22,7 +22,11 @@ public class GetFile public GetFile(final String urlString) throws MalformedURLException, IOException { - final URL url = new URL(urlString); + this(new URL(urlString)); + } + + public GetFile(final URL url) throws IOException + { this.connection = url.openConnection(); this.connection.setConnectTimeout(1000); this.connection.setReadTimeout(5000); -- cgit v1.2.3