|
@@ -33,7 +33,6 @@ import java.net.URLConnection;
|
33
|
33
|
import java.net.URLEncoder;
|
34
|
34
|
import java.nio.file.Files;
|
35
|
35
|
import java.nio.file.Path;
|
36
|
|
-import java.nio.file.Paths;
|
37
|
36
|
import java.util.ArrayList;
|
38
|
37
|
import java.util.List;
|
39
|
38
|
import java.util.Map;
|
|
@@ -119,33 +118,6 @@ public class Downloader {
|
119
|
118
|
downloadPage(url, file, null);
|
120
|
119
|
}
|
121
|
120
|
|
122
|
|
- /**
|
123
|
|
- * Downloads the specified page to disk.
|
124
|
|
- *
|
125
|
|
- * @param url The URL to retrieve
|
126
|
|
- * @param file The file to save the page to
|
127
|
|
- * @throws IOException If there's an I/O error while downloading
|
128
|
|
- */
|
129
|
|
- @Deprecated
|
130
|
|
- public void downloadPage(final String url, final String file)
|
131
|
|
- throws IOException {
|
132
|
|
- downloadPage(url, Paths.get(file), null);
|
133
|
|
- }
|
134
|
|
-
|
135
|
|
- /**
|
136
|
|
- * Downloads the specified page to disk.
|
137
|
|
- *
|
138
|
|
- * @param url The URL to retrieve
|
139
|
|
- * @param file The file to save the page to
|
140
|
|
- * @param listener The progress listener for this download
|
141
|
|
- * @throws IOException If there's an I/O error while downloading
|
142
|
|
- */
|
143
|
|
- @Deprecated
|
144
|
|
- public void downloadPage(final String url, final String file,
|
145
|
|
- final DownloadListener listener) throws IOException {
|
146
|
|
- downloadPage(url, Paths.get(file), listener);
|
147
|
|
- }
|
148
|
|
-
|
149
|
121
|
/**
|
150
|
122
|
* Downloads the specified page to disk.
|
151
|
123
|
*
|