Revision de8249cf
Added by Andreas Müller over 3 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/dwca/in/DwcaZipToStreamConverter.java | ||
---|---|---|
14 | 14 |
import java.io.InputStreamReader; |
15 | 15 |
import java.io.Reader; |
16 | 16 |
import java.io.UnsupportedEncodingException; |
17 |
import java.net.URI; |
|
18 | 17 |
import java.util.ArrayList; |
19 | 18 |
import java.util.Arrays; |
20 | 19 |
import java.util.HashMap; |
... | ... | |
33 | 32 |
import au.com.bytecode.opencsv.CSVParser; |
34 | 33 |
import au.com.bytecode.opencsv.CSVReader; |
35 | 34 |
import au.com.bytecode.opencsv.CSVWriter; |
35 |
import eu.etaxonomy.cdm.common.URI; |
|
36 | 36 |
import eu.etaxonomy.cdm.io.dwca.jaxb.Archive; |
37 | 37 |
import eu.etaxonomy.cdm.io.dwca.jaxb.ArchiveEntryBase; |
38 | 38 |
import eu.etaxonomy.cdm.io.dwca.jaxb.Extension; |
... | ... | |
253 | 253 |
// |
254 | 254 |
|
255 | 255 |
private InputStream makeInputStream(String name) throws IOException { |
256 |
File file = new File(dwcaZip); |
|
256 |
File file = new File(dwcaZip.getJavaUri());
|
|
257 | 257 |
if (! file.isFile() || ! file.exists()){ |
258 | 258 |
String message = "URI is not a file: %s"; |
259 | 259 |
throw new IOException(String.format(message, dwcaZip.toString())); |
Also available in: Unified diff
ref #9114 add URI Wrapper and replace all java.net.URI occurrences by the wrapper in cdmlib