Revision 56853
Added by Alessia Bardi about 5 years ago
modules/dnet-collector-plugins/trunk/src/main/java/eu/dnetlib/data/collector/plugins/datacite/DataciteESIterator.java | ||
---|---|---|
18 | 18 |
import org.apache.commons.codec.binary.Base64; |
19 | 19 |
import org.apache.commons.io.IOUtils; |
20 | 20 |
import org.apache.commons.lang3.StringUtils; |
21 |
import org.apache.commons.logging.Log; |
|
22 |
import org.apache.commons.logging.LogFactory; |
|
21 | 23 |
|
22 | 24 |
public class DataciteESIterator implements Iterator<String> { |
23 | 25 |
|
26 |
private static final Log log = LogFactory.getLog(DataciteESIterator.class); |
|
24 | 27 |
|
25 | 28 |
private final long timestamp; |
26 | 29 |
|
... | ... | |
59 | 62 |
|
60 | 63 |
return new String(unzippeddata); |
61 | 64 |
} catch (DataFormatException e) { |
65 |
log.warn("Exception when decompressing: "+e.getMessage()); |
|
62 | 66 |
return null; |
63 | 67 |
} |
64 | 68 |
|
Also available in: Unified diff
Log exception when decompressing