Revision de8249cf
Added by Andreas Müller over 3 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/jaxb/JaxbImport.java | ||
---|---|---|
10 | 10 |
package eu.etaxonomy.cdm.io.jaxb; |
11 | 11 |
|
12 | 12 |
import java.io.File; |
13 |
import java.net.URI; |
|
14 | 13 |
import java.net.URISyntaxException; |
15 | 14 |
import java.util.Collection; |
16 | 15 |
import java.util.List; |
... | ... | |
19 | 18 |
import org.springframework.stereotype.Component; |
20 | 19 |
import org.springframework.transaction.TransactionStatus; |
21 | 20 |
|
21 |
import eu.etaxonomy.cdm.common.URI; |
|
22 | 22 |
import eu.etaxonomy.cdm.config.Configuration; |
23 | 23 |
import eu.etaxonomy.cdm.io.common.CdmImportBase; |
24 | 24 |
import eu.etaxonomy.cdm.io.common.ICdmIO; |
... | ... | |
85 | 85 |
try { |
86 | 86 |
cdmDocumentBuilder = new CdmDocumentBuilder(); |
87 | 87 |
logger.info("Unmarshalling " + urlFileName); |
88 |
File file = new File(uri); |
|
88 |
File file = new File(uri.getJavaUri());
|
|
89 | 89 |
logger.debug("Absolute path: " + file.getAbsolutePath()); |
90 | 90 |
dataSet = cdmDocumentBuilder.unmarshal(DataSet.class, file); |
91 | 91 |
|
Also available in: Unified diff
ref #9114 add URI Wrapper and replace all java.net.URI occurrences by the wrapper in cdmlib