Revision 26790e9b
Added by Andreas Müller over 3 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/proibiosphere/TaxonXImportLauncher.java | ||
---|---|---|
13 | 13 |
import java.io.IOException; |
14 | 14 |
import java.io.InputStreamReader; |
15 | 15 |
import java.net.MalformedURLException; |
16 |
import java.net.URI; |
|
17 | 16 |
import java.net.URISyntaxException; |
18 | 17 |
import java.net.URL; |
19 | 18 |
import java.util.ArrayList; |
... | ... | |
31 | 30 |
import org.apache.log4j.Logger; |
32 | 31 |
|
33 | 32 |
import eu.etaxonomy.cdm.app.common.CdmDestinations; |
33 |
import eu.etaxonomy.cdm.common.URI; |
|
34 | 34 |
import eu.etaxonomy.cdm.database.DbSchemaValidation; |
35 | 35 |
import eu.etaxonomy.cdm.database.ICdmDataSource; |
36 | 36 |
import eu.etaxonomy.cdm.io.common.CdmDefaultImport; |
... | ... | |
252 | 252 |
for (int page:pages) { |
253 | 253 |
for (String treatment: startPages.get(page)) { |
254 | 254 |
try { |
255 |
uritmp.add(new URL(treatment).toURI());
|
|
255 |
uritmp.add(URI.fromUrl(new URL(treatment)));
|
|
256 | 256 |
} catch (MalformedURLException e) { |
257 | 257 |
// TODO Auto-generated catch block |
258 | 258 |
e.printStackTrace(); |
Also available in: Unified diff
ref #9114 adapt URI to wrapper in cdmlib-app